Skip to content

Commit

Permalink
Support silent logging
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 12, 2023
1 parent a0cc8ce commit 6924187
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/eucalyptus.scala
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ package logging:
Log:
case _ => sink

given silent: Log =
given Monitor = null.asInstanceOf[Monitor]
Log { case _ => LogSink.drain }

object LogSink:
val drain = new LogSink:
def write(stream: LazyList[Entry]): Unit = ()
Expand Down

0 comments on commit 6924187

Please sign in to comment.