refactor: split Utils static methods class into functions
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / UIServerUtils.ts
index 056d31fa8e0f0b37a9ec6101a0418b6d1c3d5fc4..cada139961dd0044686074eecbb158a0b6c16e7e 100644 (file)
@@ -1,7 +1,7 @@
 import type { IncomingMessage } from 'node:http';
 
 import { Protocol, ProtocolVersion } from '../../types';
-import { Utils, logger } from '../../utils';
+import { logPrefix, logger } from '../../utils';
 
 export class UIServerUtils {
   private constructor() {
@@ -24,7 +24,7 @@ export class UIServerUtils {
       }
     }
     logger.error(
-      `${Utils.logPrefix(
+      `${logPrefix(
         ' UI WebSocket Server |'
       )} Unsupported protocol: ${protocol} or protocol version: ${version}`
     );