From 91b0564fb0797649862131f6623edbabca9a35df Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 12 Oct 2024 16:36:44 -0500 Subject: run everything through the daemon check to switch to fmt Signed-off-by: Jeff Carr --- output.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'output.go') diff --git a/output.go b/output.go index c52dcfc..4982f0d 100644 --- a/output.go +++ b/output.go @@ -13,17 +13,17 @@ import ( func SetTmpOLD() { f, err := os.OpenFile("/tmp/guilogfile", os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666) if err != nil { - golanglog.Fatalf("error opening file: %v", err) + realFatalf("error opening file: %v", err) } // hmm. is there a trick here or must this be in main() // defer f.Close() golanglog.SetOutput(f) - golanglog.Println("This is a test log entry") + realPrintln("This is a test log entry") } // start writing all the logging to a tmp file func UnsetTmp() { golanglog.SetOutput(os.Stdout) - golanglog.Println("This is a test log entry") + realPrintln("This is a test log entry") } -- cgit v1.2.3