Skip to content

Commit 284e763

Browse files
committed
update logger
1 parent 2d435ca commit 284e763

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/core/src/integrations/mcp-server/handlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { DEBUG_BUILD } from '../../debug-build';
7-
import { logger } from '../../utils/logger';
7+
import { debug } from '../../utils/debug-logger';
88
import { fill } from '../../utils/object';
99
import { associateContextWithRequestSpan } from './correlation';
1010
import { captureError } from './errorCapture';
@@ -47,7 +47,7 @@ function createWrappedHandler(originalHandler: MCPHandler, methodName: keyof MCP
4747
);
4848
});
4949
} catch (error) {
50-
DEBUG_BUILD && logger.warn('MCP handler wrapping failed:', error);
50+
DEBUG_BUILD && debug.warn('MCP handler wrapping failed:', error);
5151
return originalHandler.apply(this, handlerArgs);
5252
}
5353
};

packages/core/src/integrations/mcp-server/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*/
44

55
import { DEBUG_BUILD } from '../../debug-build';
6-
import { debug } from '../../utils/logger';
76
import type { JsonRpcNotification, JsonRpcRequest } from './types';
7+
import { debug } from '../../utils/debug-logger';
88

99
/** Validates if a message is a JSON-RPC request */
1010
export function isJsonRpcRequest(message: unknown): message is JsonRpcRequest {

0 commit comments

Comments
 (0)