Improve daemon client debug reports
Before this change a daemon client debug messages were printed only when the client could not connect and the 'kotlin.daemon.verbose' system property was set up. Now messages are printed if the debug logging is enabled and the 'kotlin.daemon.verbose' is set up.
This commit is contained in:
+3
-1
@@ -395,11 +395,13 @@ object KotlinCompilerClient {
|
||||
daemon.inputStream
|
||||
.reader()
|
||||
.forEachLine {
|
||||
reportingTargets.report(DaemonReportCategory.DEBUG, it, "daemon")
|
||||
|
||||
if (it == COMPILE_DAEMON_IS_READY_MESSAGE) {
|
||||
reportingTargets.report(DaemonReportCategory.DEBUG, "Received the message signalling that the daemon is ready")
|
||||
isEchoRead.release()
|
||||
return@forEachLine
|
||||
}
|
||||
reportingTargets.report(DaemonReportCategory.DEBUG, it, "daemon")
|
||||
}
|
||||
}
|
||||
finally {
|
||||
|
||||
Reference in New Issue
Block a user