From 9ac62565a053674e701e172421455943ffc31d85 Mon Sep 17 00:00:00 2001 From: Shreya Keshive Date: Fri, 8 Aug 2025 17:48:02 -0400 Subject: Fix excessive console logging + remove unnecessary try catch (#5860) --- packages/core/src/ide/ide-client.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/core/src') diff --git a/packages/core/src/ide/ide-client.ts b/packages/core/src/ide/ide-client.ts index 6d8be7fa..69329bee 100644 --- a/packages/core/src/ide/ide-client.ts +++ b/packages/core/src/ide/ide-client.ts @@ -211,16 +211,16 @@ export class IdeClient { this.state.status === IDEConnectionStatus.Disconnected && status === IDEConnectionStatus.Disconnected; - // Only update details if the state wasn't already disconnected, so that - // the first detail message is preserved. + // Only update details & log to console if the state wasn't already + // disconnected, so that the first detail message is preserved. if (!isAlreadyDisconnected) { this.state = { status, details }; - } - - if (status === IDEConnectionStatus.Disconnected) { if (logToConsole) { logger.error(details); } + } + + if (status === IDEConnectionStatus.Disconnected) { logger.debug(details); ideContext.clearIdeContext(); } -- cgit v1.2.3