aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-14 21:44:32 +0800
committerobscuren <geffobscura@gmail.com>2014-06-14 21:44:32 +0800
commitef1b923b31dfda78bc8f3dce415721aa9518fe4b (patch)
treef21aacf86932ec3f7a85de1ccb74fc8b00763e5d /ethereal/ui/gui.go
parente7a22af0e633db4da3d81f1ad07126ea3b06f891 (diff)
downloaddexon-ef1b923b31dfda78bc8f3dce415721aa9518fe4b.tar
dexon-ef1b923b31dfda78bc8f3dce415721aa9518fe4b.tar.gz
dexon-ef1b923b31dfda78bc8f3dce415721aa9518fe4b.tar.bz2
dexon-ef1b923b31dfda78bc8f3dce415721aa9518fe4b.tar.lz
dexon-ef1b923b31dfda78bc8f3dce415721aa9518fe4b.tar.xz
dexon-ef1b923b31dfda78bc8f3dce415721aa9518fe4b.tar.zst
dexon-ef1b923b31dfda78bc8f3dce415721aa9518fe4b.zip
Added a log level slider which can change the log level
Diffstat (limited to 'ethereal/ui/gui.go')
-rw-r--r--ethereal/ui/gui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereal/ui/gui.go b/ethereal/ui/gui.go
index 23f53ef47..b67035149 100644
--- a/ethereal/ui/gui.go
+++ b/ethereal/ui/gui.go
@@ -356,3 +356,7 @@ func (gui *Gui) ChangeClientId(id string) {
func (gui *Gui) ClientId() string {
return ethutil.Config.Identifier
}
+
+func (gui *Gui) SetLogLevel(level int) {
+ ethutil.Config.Log.SetLevel(level)
+}