diff options
| author | Jeff Carr <[email protected]> | 2024-01-03 22:10:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-03 22:10:13 -0600 |
| commit | 973f6411f4a59dcf21a8151d21578775deb340e0 (patch) | |
| tree | 7cd008f5ff5b3e8960dc26e73e4ac1297f7faa7d /logSettings.go | |
| parent | cbf944b0b305800cb07b2aab380d882c66bee94a (diff) | |
more learning/debugging codev0.2.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'logSettings.go')
| -rw-r--r-- | logSettings.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/logSettings.go b/logSettings.go index 898de90..fee9bf4 100644 --- a/logSettings.go +++ b/logSettings.go @@ -21,7 +21,8 @@ type LogSettings struct { } func (ls *LogSettings) Set(b bool) { - log.Set(ls.name, b) + // log.Set(ls.name, b) + log.Warn("log.Set() FIXME: not working here anymore") ls.checkbox.Set(b) } @@ -33,9 +34,10 @@ func NewLogFlag(p *gui.Node, name string) *LogSettings { ls.checkbox = p.NewCheckbox(name) ls.label = p.NewLabel("Enable log." + name) - ls.checkbox.Set(log.Get(name)) + // ls.checkbox.Set(log.Get(name)) ls.checkbox.Custom = func() { - log.Set(name, ls.checkbox.B) + // log.Set(name, ls.checkbox.B) + log.Warn("log.Set() FIXME: not working here anymore") } return ls } @@ -89,8 +91,10 @@ func DebugFlags(n *gui.Node) { g = newB.NewGroup("List") g = g.NewGrid("flags grid", 2, 2) + /* logGadgets["INFO"] = NewLogFlag(g, "INFO") logGadgets["WARN"] = NewLogFlag(g, "WARN") logGadgets["SPEW"] = NewLogFlag(g, "SPEW") logGadgets["ERROR"] = NewLogFlag(g, "ERROR") + */ } |
