summaryrefslogtreecommitdiff
path: root/output.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-12 16:36:44 -0500
committerJeff Carr <[email protected]>2024-10-12 16:36:44 -0500
commit91b0564fb0797649862131f6623edbabca9a35df (patch)
treee7ef26981960e416de1e36c6faccfe99dc92b7b5 /output.go
parent366bcac15c3db2240b04c000bc0892452cce1bce (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.go6
1 files changed, 3 insertions, 3 deletions
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")
}