mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-28 04:32:35 -07:00
fix(core): truncate excessive debug output in MessageBus
This commit is contained in:
@@ -42,7 +42,10 @@ export class MessageBus extends EventEmitter {
|
||||
|
||||
async publish(message: Message): Promise<void> {
|
||||
if (this.debug) {
|
||||
debugLogger.debug(`[MESSAGE_BUS] publish: ${safeJsonStringify(message)}`);
|
||||
const json = safeJsonStringify(message);
|
||||
debugLogger.debug(
|
||||
`[MESSAGE_BUS] publish: ${json.length > 500 ? json.substring(0, 500) + '...' : json}`,
|
||||
);
|
||||
}
|
||||
try {
|
||||
if (!this.isValidMessage(message)) {
|
||||
|
||||
Reference in New Issue
Block a user