import { IncomingMessage } from 'http';
import Utils from '../../utils/Utils';
-import getLogger from '../../utils/Logger';
+import logger from '../../utils/Logger';
export class UIServiceUtils {
public static handleProtocols = (protocols: Set<string>, request: IncomingMessage): string | false => {
return fullProtocol;
}
}
- getLogger().error(`${Utils.logPrefix(' UI WebSocket Server:')} Unsupported protocol: ${protocol} or protocol version: ${version}`);
+ logger.error(`${Utils.logPrefix(' UI WebSocket Server:')} Unsupported protocol: ${protocol} or protocol version: ${version}`);
return false;
};
}