mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
refactor(logging): Centralize all console messaging to a shared logger (part 1) (#11537)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
debugLogger,
|
||||
flatMapTextParts,
|
||||
readPathFromWorkspace,
|
||||
} from '@google/gemini-cli-core';
|
||||
@@ -68,8 +69,9 @@ export class AtFileProcessor implements IPromptProcessor {
|
||||
error instanceof Error ? error.message : String(error);
|
||||
const uiMessage = `Failed to inject content for '@{${pathStr}}': ${message}`;
|
||||
|
||||
console.error(
|
||||
`[AtFileProcessor] ${uiMessage}. Leaving placeholder in prompt.`,
|
||||
// `context.invocation` should always be present at this point.
|
||||
debugLogger.error(
|
||||
`Error while loading custom command (${context.invocation!.name}) ${uiMessage}. Leaving placeholder in prompt.`,
|
||||
);
|
||||
context.ui.addItem(
|
||||
{ type: MessageType.ERROR, text: uiMessage },
|
||||
|
||||
Reference in New Issue
Block a user