diff options
| author | Shreya Keshive <[email protected]> | 2025-08-08 17:48:02 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-08 21:48:02 +0000 |
| commit | 9ac62565a053674e701e172421455943ffc31d85 (patch) | |
| tree | 08cd66c33a99a3828d24bb45408bff1f6f996cc9 /packages/core/src | |
| parent | 344ee29f7713b6a249e510674c7410d0fb8ec2f8 (diff) | |
Fix excessive console logging + remove unnecessary try catch (#5860)
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/ide/ide-client.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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(); } |
