mirror of
https://github.com/sbt/sbt.git
synced 2026-10-08 02:53:10 +02:00
Load SuccessEventTag lazily
It takes about a second to load scala.reflect.runtime.universe. If we
lazy load here, we can load scala.relect.runtime.universe in the
background to speed up the sbt start up time. See
0ebb7a5662.
This commit is contained in:
@@ -25,7 +25,7 @@ class ManagedLogger(
|
||||
)
|
||||
}
|
||||
|
||||
private val SuccessEventTag = scala.reflect.runtime.universe.typeTag[SuccessEvent]
|
||||
private lazy val SuccessEventTag = scala.reflect.runtime.universe.typeTag[SuccessEvent]
|
||||
// send special event for success since it's not a real log level
|
||||
override def success(message: => String): Unit = {
|
||||
infoEvent[SuccessEvent](SuccessEvent(message))(
|
||||
|
||||
Reference in New Issue
Block a user