mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 14:40:52 -07:00
Fix: Only log message bus debug info when feature is enabled (#9156)
This commit is contained in:
@@ -1031,7 +1031,7 @@ export class Config {
|
||||
// This first implementation is only focused on the general case of
|
||||
// the tool registry.
|
||||
const messageBusEnabled = this.getEnableMessageBusIntegration();
|
||||
if (this.debugMode) {
|
||||
if (this.debugMode && messageBusEnabled) {
|
||||
console.log(
|
||||
`[DEBUG] enableMessageBusIntegration setting: ${messageBusEnabled}`,
|
||||
);
|
||||
@@ -1039,7 +1039,7 @@ export class Config {
|
||||
const toolArgs = messageBusEnabled
|
||||
? [...args, this.getMessageBus()]
|
||||
: args;
|
||||
if (this.debugMode) {
|
||||
if (this.debugMode && messageBusEnabled) {
|
||||
console.log(
|
||||
`[DEBUG] Registering ${className} with messageBus: ${messageBusEnabled ? 'YES' : 'NO'}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user