diff --git a/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt b/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt index aa89026ee8a..31eaa4d86b4 100644 --- a/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt +++ b/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt @@ -149,6 +149,7 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC MessageType.Error -> Level.ERROR MessageType.Warning -> Level.WARN MessageType.Info, MessageType.Log -> Level.INFO + else -> Level.WARN } if (type == Level.ERROR && diff --git a/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt b/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt index 6c56a6d6868..0929d41af8c 100644 --- a/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt +++ b/plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt @@ -120,10 +120,13 @@ internal class LSPProcessListener : ProcessListener { } } else if (ProcessOutputType.isStderr(outputType)) { LOG.warn { "LSP process stderr: ${event.text}" } + } else if (outputType == ProcessOutputType.SYSTEM) { + LOG.info { "LSP system events: ${event.text}" } } } override fun processTerminated(event: ProcessEvent) { + LOG.info { "LSP process terminated with exit code ${event.exitCode}" } try { this.outputStreamWriter.close() this.outputStream.close()