diff options
| author | Jeff Carr <[email protected]> | 2024-10-12 16:36:44 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-12 16:36:44 -0500 |
| commit | 91b0564fb0797649862131f6623edbabca9a35df (patch) | |
| tree | e7ef26981960e416de1e36c6faccfe99dc92b7b5 /output.go | |
| parent | 366bcac15c3db2240b04c000bc0892452cce1bce (diff) | |
run everything through the daemon check to switch to fmt
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'output.go')
| -rw-r--r-- | output.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") } |
