mirror of https://github.com/sbt/sbt.git
Shorter log messages in web app
This commit is contained in:
parent
2cea625014
commit
2d93790f6f
|
|
@ -113,12 +113,12 @@ class Backend($: BackendScope[Unit, State]) {
|
|||
|
||||
val logger: Fetch.Logger = new Fetch.Logger {
|
||||
def fetched(url: String) = {
|
||||
println(s"Fetched $url")
|
||||
$.modState(s => s.copy(log = s"Fetched $url" +: s.log))
|
||||
println(s"<- $url")
|
||||
$.modState(s => s.copy(log = s"<- $url" +: s.log))
|
||||
}
|
||||
def fetching(url: String) = {
|
||||
println(s"Fetching $url")
|
||||
$.modState(s => s.copy(log = s"Fetching $url" +: s.log))
|
||||
println(s"-> $url")
|
||||
$.modState(s => s.copy(log = s"-> $url" +: s.log))
|
||||
}
|
||||
def other(url: String, msg: String) = {
|
||||
println(s"$url: $msg")
|
||||
|
|
|
|||
Loading…
Reference in New Issue