Set log level of std logger as well. (since gui logging is disabled)

This commit is contained in:
obscuren
2014-08-22 12:40:15 +02:00
parent 842f2cc8a0
commit 5ac875b097
4 changed files with 12 additions and 4 deletions

View File

@ -56,7 +56,8 @@ type Gui struct {
plugins map[string]plugin
miner *ethminer.Miner
miner *ethminer.Miner
stdLog ethlog.LogSystem
}
// Create GUI, but doesn't start it
@ -559,6 +560,7 @@ func (gui *Gui) ToggleTurboMining() {
// functions that allow Gui to implement interface ethlog.LogSystem
func (gui *Gui) SetLogLevel(level ethlog.LogLevel) {
gui.logLevel = level
gui.stdLog.SetLogLevel(level)
gui.config.Save("loglevel", level)
}