migrating console.error to debugger for installationManager, oauth-provider, modifiable-tool (#12279)

This commit is contained in:
Sehoon Shon
2025-10-31 14:17:51 -04:00
committed by GitHub
parent c158923b27
commit ab013fb7e9
5 changed files with 26 additions and 11 deletions

View File

@@ -17,6 +17,7 @@ import type {
DeclarativeTool,
ToolResult,
} from './tools.js';
import { debugLogger } from '../utils/debugLogger.js';
/**
* A declarative tool that supports a modify operation.
@@ -128,13 +129,13 @@ function deleteTempFiles(oldPath: string, newPath: string): void {
try {
fs.unlinkSync(oldPath);
} catch {
console.error(`Error deleting temp diff file: ${oldPath}`);
debugLogger.error(`Error deleting temp diff file: ${oldPath}`);
}
try {
fs.unlinkSync(newPath);
} catch {
console.error(`Error deleting temp diff file: ${newPath}`);
debugLogger.error(`Error deleting temp diff file: ${newPath}`);
}
}