From 820f27c0a2dc4fa98b17327a68a4e94237597c7a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 14 Nov 2024 04:59:09 -0600 Subject: [PATCH] use io.Writer --- keybindings.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keybindings.go b/keybindings.go index 4771642..15d0821 100644 --- a/keybindings.go +++ b/keybindings.go @@ -142,6 +142,10 @@ func addDebugKeys(g *gocui.Gui) { } if tk.v == nil { log.Log(ERROR, "tk.v = nil") + } else { + log.Log(ERROR, "setting log.CaptureMode(tk.v)") + log.Log(ERROR, "setting log.CaptureMode(tk.v)") + log.CaptureMode(tk.v) } if me.fakefile == nil { log.Log(ERROR, "making fakefile") @@ -150,7 +154,6 @@ func addDebugKeys(g *gocui.Gui) { log.Log(ERROR, "attempt write to fakefile") fmt.Fprintf(me.fakefile, "test out fakefile %d\n", ecount) } - // log.CaptureMode(tk.v) return nil })