changed logger API, functions that allow Gui to implement ethlog.LogSystem for gui logging

This commit is contained in:
zelig
2014-06-23 11:41:11 +01:00
parent 7bcf875c57
commit d060ae6a36
3 changed files with 38 additions and 29 deletions

View File

@ -96,11 +96,11 @@ func (app *HtmlApplication) NewWatcher(quitChan chan bool) {
app.watcher.Close()
break out
case <-app.watcher.Event:
//ethutil.Config.Log.Debugln("Got event:", ev)
//logger.Debugln("Got event:", ev)
app.webView.Call("reload")
case err := <-app.watcher.Error:
// TODO: Do something here
ethutil.Config.Log.Infoln("Watcher error:", err)
logger.Infoln("Watcher error:", err)
}
}
}()