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 {
|
val logger: Fetch.Logger = new Fetch.Logger {
|
||||||
def fetched(url: String) = {
|
def fetched(url: String) = {
|
||||||
println(s"Fetched $url")
|
println(s"<- $url")
|
||||||
$.modState(s => s.copy(log = s"Fetched $url" +: s.log))
|
$.modState(s => s.copy(log = s"<- $url" +: s.log))
|
||||||
}
|
}
|
||||||
def fetching(url: String) = {
|
def fetching(url: String) = {
|
||||||
println(s"Fetching $url")
|
println(s"-> $url")
|
||||||
$.modState(s => s.copy(log = s"Fetching $url" +: s.log))
|
$.modState(s => s.copy(log = s"-> $url" +: s.log))
|
||||||
}
|
}
|
||||||
def other(url: String, msg: String) = {
|
def other(url: String, msg: String) = {
|
||||||
println(s"$url: $msg")
|
println(s"$url: $msg")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue