use io.Writer

This commit is contained in:
Jeff Carr 2024-11-14 04:59:09 -06:00
parent 15666309ee
commit 820f27c0a2
1 changed files with 4 additions and 1 deletions

View File

@ -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
})