Skip to content

Commit

Permalink
Merge pull request #1536 from tgodzik/logging-output
Browse files Browse the repository at this point in the history
Do not log debug output on info level
  • Loading branch information
tgodzik authored Jul 29, 2021
2 parents 77e59d7 + 9dd382a commit ed4fd6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/main/scala/bloop/dap/DebuggeeLogger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class DebuggeeLogger(listener: DebuggeeListener, underlying: Logger) extends Log
}

override def info(msg: String): Unit = {
underlying.info(msg)
// don't log program output by default, since it can be long
underlying.debug(msg)(debugFilter)
// Expect the first log to be JDI notification since debuggee runs with `quiet=n` JDI option
if (msg.startsWith(JDINotificationPrefix)) {
if (initialized.compareAndSet(false, true)) {
Expand Down

0 comments on commit ed4fd6c

Please sign in to comment.