diff --git a/.vscode/launch.json b/.vscode/launch.json index 8d273b2a3d..1979082379 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -16,7 +16,8 @@ "preLaunchTask": "${defaultBuildTask}", "envFile": "${workspaceFolder}/.env.local", "env": { - "NODE_ENV": "development" + "NODE_ENV": "development", + "VSCODE_DEBUG_MODE": "true" }, "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"], "presentation": { diff --git a/src/api/core/logging/env-config.ts b/src/api/core/logging/env-config.ts index 1815cc8b5b..af0d619cc7 100644 --- a/src/api/core/logging/env-config.ts +++ b/src/api/core/logging/env-config.ts @@ -89,18 +89,18 @@ function getEnvLocalValues(): Record { * Check if API logging is enabled * * Checks in order: - * 1. Workspace .env.local: ROO_CODE_LOGGING=true (for user's workspace) + * 1. Workspace .env.local: ROO_CODE_API_LOGGING=true (for user's workspace) * 2. Process env (loaded from extension's .env.local via envFile in launch.json) */ export function isLoggingEnabled(): boolean { // Check workspace .env.local first (user's current workspace) const envLocal = getEnvLocalValues() - if (envLocal["ROO_CODE_LOGGING"] === "true") { + if (envLocal["ROO_CODE_API_LOGGING"] === "true") { return true } // Fallback to process.env (populated from extension's .env.local via launch.json envFile) - return process.env.ROO_CODE_LOGGING === "true" + return process.env.ROO_CODE_API_LOGGING === "true" } /**