Shorter log messages in web app

This commit is contained in:
Alexandre Archambault 2015-06-27 15:27:12 +02:00
parent 2cea625014
commit 2d93790f6f
1 changed files with 4 additions and 4 deletions

View File

@ -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")