You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
+8-14Lines changed: 8 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -87,8 +87,6 @@ import java.io.IOException
87
87
importjava.io.OutputStreamWriter
88
88
importjava.io.PipedInputStream
89
89
importjava.io.PipedOutputStream
90
-
importjava.io.PrintWriter
91
-
importjava.io.StringWriter
92
90
importjava.net.Proxy
93
91
importjava.net.URI
94
92
importjava.nio.charset.StandardCharsets
@@ -452,10 +450,17 @@ private class AmazonQServerInstance(private val project: Project, private val cs
452
450
}
453
451
.wrapMessages { consumer ->
454
452
MessageConsumer { message ->
453
+
// logging
454
+
val traceLogger =LOG.atLevel(if (isDeveloperMode()) Level.INFOelseLevel.DEBUG)
455
+
val direction =if (consumer isRemoteEndpoint) "Sent"else"Received"
456
+
traceLogger.log { "$direction: $message" }
457
+
455
458
if (message isResponseMessage&& message.result isAwsExtendedInitializeResult) {
456
459
val result = message.result asAwsExtendedInitializeResult
0 commit comments