fix: Replace console.debug with logger in exit tool
Addresses code review feedback to use shared logger instead of console.debug
This commit is contained in:
parent
d865b5c4b6
commit
b65f44027a
1 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { logger } from "../util/logger.js";
|
||||
|
||||
import { Tool } from "./types.js";
|
||||
|
||||
export const exitTool: Tool = {
|
||||
|
|
@ -21,7 +23,10 @@ export const exitTool: Tool = {
|
|||
await updateAgentMetadata({ isComplete: true });
|
||||
} catch (err) {
|
||||
// Non-critical: log but don't block exit
|
||||
console.debug("Failed to update completion metadata (non-critical)", err);
|
||||
logger.debug(
|
||||
"Failed to update completion metadata (non-critical)",
|
||||
err as any,
|
||||
);
|
||||
}
|
||||
|
||||
await gracefulExit(1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue