Skip to content

Commit c2484f3

Browse files
committed
PluginBridge: Improve logging
1 parent 45f8c9b commit c2484f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp-server/src/PluginBridge.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ export class PluginBridge {
5151
}
5252

5353
if (userToken) {
54-
this.logger.info("New WebSocket connection established (authenticated)");
54+
this.logger.info("New WebSocket connection established (token provided)");
5555
} else {
56-
this.logger.info("New WebSocket connection established (unauthenticated)");
56+
this.logger.info("New WebSocket connection established");
5757
}
5858

5959
// register the client connection with both indexes
@@ -70,12 +70,12 @@ export class PluginBridge {
7070
}
7171

7272
ws.on("message", (data: Buffer) => {
73-
this.logger.info("Received WebSocket message: %s", data.toString());
73+
this.logger.debug("Received WebSocket message: %s", data.toString());
7474
try {
7575
const response: PluginTaskResponse<any> = JSON.parse(data.toString());
7676
this.handlePluginTaskResponse(response);
7777
} catch (error) {
78-
this.logger.error(error, "Failed to parse WebSocket message");
78+
this.logger.error(error, "Failure while processing WebSocket message");
7979
}
8080
});
8181

0 commit comments

Comments
 (0)