Skip to content

Commit 6ef9ff3

Browse files
committed
clean unnecessary logs in client.ts
1 parent 1509ff6 commit 6ef9ff3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -270,26 +270,12 @@ async function onLanguageServerReady(
270270
// Function to attempt connection
271271
const attemptConnection = (attempt: number = 1): void => {
272272
const autoDebugFeature = (global as any).autoDebugFeature as AutoDebugFeature | undefined
273-
getLogger('amazonqLsp').debug(
274-
'AutoDebug feature connection attempt %d: %s',
275-
attempt,
276-
autoDebugFeature ? 'found' : 'not found'
277-
)
278273

279274
if (autoDebugFeature) {
280-
getLogger('amazonqLsp').debug('Setting language client and encryption key on AutoDebug feature')
281275
autoDebugFeature.setLanguageClient(client, encryptionKey)
282-
getLogger('amazonqLsp').info(
283-
'AutoDebug feature connected to language client with encryption key successfully'
284-
)
285276
} else if (attempt < 5) {
286277
// Retry up to 5 times with exponential backoff
287278
const delay = Math.min(1000 * Math.pow(2, attempt - 1), 10000) // Max 10 seconds
288-
getLogger('amazonqLsp').debug(
289-
'AutoDebug feature not found, retrying in %dms (attempt %d/5)',
290-
delay,
291-
attempt + 1
292-
)
293279
setTimeout(() => attemptConnection(attempt + 1), delay)
294280
} else {
295281
getLogger('amazonqLsp').error(

0 commit comments

Comments
 (0)