mirror of
https://github.com/aljazceru/dvmcp.git
synced 2025-12-17 05:14:24 +01:00
refactor: logger implementation from discovery to commons package (#9)
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
TOOL_RESPONSE_KIND,
|
||||
DVM_NOTICE_KIND,
|
||||
} from '@dvmcp/commons/constants';
|
||||
import logger from './logger';
|
||||
import { loggerDiscovery } from '@dvmcp/commons/logger';
|
||||
|
||||
interface ExecutionContext {
|
||||
timeoutId: ReturnType<typeof setTimeout>;
|
||||
@@ -66,7 +66,7 @@ export class ToolExecutor {
|
||||
|
||||
private createExecutionContext(executionId: string): ExecutionContext {
|
||||
const timeoutId = setTimeout(() => {
|
||||
logger('Execution timeout for:', executionId);
|
||||
loggerDiscovery('Execution timeout for:', executionId);
|
||||
this.cleanupExecution(executionId);
|
||||
}, ToolExecutor.EXECUTION_TIMEOUT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user