@@ -47,9 +47,9 @@ async function createLWCServerConfig(
4747
4848 const ports = serverPorts ??
4949 ( await ConfigUtils . getLocalDevServerPorts ( ) ) ?? {
50- httpPort : LOCAL_DEV_SERVER_DEFAULT_HTTP_PORT ,
51- httpsPort : LOCAL_DEV_SERVER_DEFAULT_HTTP_PORT + 1 ,
52- } ;
50+ httpPort : LOCAL_DEV_SERVER_DEFAULT_HTTP_PORT ,
51+ httpsPort : LOCAL_DEV_SERVER_DEFAULT_HTTP_PORT + 1 ,
52+ } ;
5353
5454 const serverConfig : ServerConfig = {
5555 rootDir,
@@ -107,31 +107,19 @@ export async function startLWCServer(
107107 localhostOnly : true , // Bind to localhost only for security
108108 } ) ;
109109
110- // eslint-disable-next-line no-console
111- console . log ( '\n✅ [ErrorCapture] Error capture system initialized' ) ;
112- // eslint-disable-next-line no-console
113- console . log ( `📡 [ErrorCapture] LWC Dev Server (WebSocket): ws://localhost:${ config . port } ` ) ;
114- // eslint-disable-next-line no-console
115- console . log ( `🔍 [ErrorCapture] Error Capture Server (HTTP): http://localhost:${ errorCapturePort } ` ) ;
116- // eslint-disable-next-line no-console
117- console . log ( '💡 [ErrorCapture] Tip: Errors clear automatically on server restart' ) ;
118- // eslint-disable-next-line no-console
119- console . log ( ` Or manually: curl -X DELETE http://localhost:${ errorCapturePort } /_dev/errors\n` ) ;
120110 logger . info ( '[ErrorCapture] Error capture system initialized' ) ;
121111 } catch ( err ) {
122112 // eslint-disable-next-line no-console
123113 console . log (
124- `\n⚠️ [ErrorCapture] Failed to start error capture server on port ${ errorCapturePort } : ${
125- err instanceof Error ? err . message : String ( err )
114+ `\n⚠️ [ErrorCapture] Failed to start error capture server on port ${ errorCapturePort } : ${ err instanceof Error ? err . message : String ( err )
126115 } `
127116 ) ;
128117 // eslint-disable-next-line no-console
129118 console . log (
130119 '⚠️ [ErrorCapture] Error capture will not be available. This does not affect LWC dev server functionality.\n'
131120 ) ;
132121 logger . warn (
133- `[ErrorCapture] Failed to start error capture server on port ${ errorCapturePort } : ${
134- err instanceof Error ? err . message : String ( err )
122+ `[ErrorCapture] Failed to start error capture server on port ${ errorCapturePort } : ${ err instanceof Error ? err . message : String ( err )
135123 } `
136124 ) ;
137125 }
0 commit comments