From a110c3b36ea8a288c4ef088065dca22b8e53ec24 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Thu, 18 Dec 2025 09:17:31 -0700 Subject: [PATCH] fix(logging): update environment variable references from ROO_CODE_LOGGING to ROO_CODE_API_LOGGING --- src/api/core/logging/api-logger.ts | 9 +++------ src/utils/logging/index.ts | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/api/core/logging/api-logger.ts b/src/api/core/logging/api-logger.ts index 09adaebe9e..673e33daea 100644 --- a/src/api/core/logging/api-logger.ts +++ b/src/api/core/logging/api-logger.ts @@ -3,10 +3,7 @@ * Provides consistent logging for all API requests and responses across providers * * Enable logging by: - * 1. Setting ROO_CODE_LOGGING=true in workspace .env.local file - * 2. Setting ROO_CODE_LOGGING=true in process environment - * 3. Setting VSCODE_DEBUG_MODE=true in process environment - * + * 1. Setting ROO_CODE_API_LOGGING=true in workspace .env.local file * Logs will appear in the Output/Debug console as simple console.log statements. */ @@ -25,7 +22,7 @@ import { isLoggingEnabled } from "./env-config" * Centralized API logging service * Singleton instance that all providers route through for consistent logging * - * When ROO_CODE_LOGGING=true, logs are output via console.log/console.error + * When ROO_CODE_API_LOGGING=true, logs are output via console.log/console.error * for visibility in VS Code's Output panel and Debug Console. */ class ApiLoggerService { @@ -56,7 +53,7 @@ class ApiLoggerService { /** * Check if logging should actually output - * Requires both: config.enabled AND ROO_CODE_LOGGING=true + * Requires both: config.enabled AND ROO_CODE_API_LOGGING=true */ private shouldLog(): boolean { return this.config.enabled && isLoggingEnabled() diff --git a/src/utils/logging/index.ts b/src/utils/logging/index.ts index 3843835a7e..390b94ace2 100644 --- a/src/utils/logging/index.ts +++ b/src/utils/logging/index.ts @@ -23,6 +23,6 @@ const noopLogger = { * Uses CompactLogger for test environment, switches to noop logger in production * * Note: For API logging, use the ApiLogger from src/api/core/logging which - * outputs to console.log when ROO_CODE_LOGGING=true + * outputs to console.log when ROO_CODE_API_LOGGING=true */ export const logger = process.env.NODE_ENV === "test" ? new CompactLogger() : noopLogger