Skip to content

Commit

Permalink
Rearranged log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Jan 27, 2023
1 parent f2fae35 commit cefee93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bsp/worker/src/mill/bsp/worker/MillBuildServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ class MillBuildServer(
log.debug(s"Entered ${hint}")
val start = System.currentTimeMillis()
def took =
log.debug(s"${hint.split("[ ]").head} took ${System.currentTimeMillis() - start} msec")
log.debug(s"${hint.split(" ").head} took ${System.currentTimeMillis() - start} msec")

val future = new CompletableFuture[V]()

Expand All @@ -783,14 +783,14 @@ class MillBuildServer(
} else {
try {
val v = f
log.debug(s"${hint.split("[ ]").head} result: ${v}")
took
log.debug(s"${hint.split(" ").head} result: ${v}")
future.complete(v)
} catch {
case e: Exception =>
logStream.println(s"Caugh exception: ${e}")
e.printStackTrace(logStream)
took
logStream.println(s"Caught exception: ${e}")
e.printStackTrace(logStream)
future.completeExceptionally(e)
}
}
Expand Down

0 comments on commit cefee93

Please sign in to comment.