aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/gui.go4
-rw-r--r--ethereal/main.go3
2 files changed, 5 insertions, 2 deletions
diff --git a/ethereal/gui.go b/ethereal/gui.go
index 6d16ec484..5e87f7464 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -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)
}
diff --git a/ethereal/main.go b/ethereal/main.go
index dd4f1245a..4fb9e2a9c 100644
--- a/ethereal/main.go
+++ b/ethereal/main.go
@@ -25,7 +25,7 @@ func run() error {
utils.InitDataDir(Datadir)
- utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile)
+ stdLog := utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile)
db := utils.NewDatabase()
err := utils.DBSanityCheck(db)
@@ -53,6 +53,7 @@ func run() error {
}
gui := NewWindow(ethereum, config, clientIdentity, KeyRing, LogLevel)
+ gui.stdLog = stdLog
utils.RegisterInterrupt(func(os.Signal) {
gui.Stop()