mirror of https://github.com/sbt/sbt.git
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:
parent
c0146ed0ff
commit
b3165b5c8c
|
|
@ -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))(
|
||||
|
|
|
|||
Loading…
Reference in New Issue