diff options
Diffstat (limited to 'reallog.go')
| -rw-r--r-- | reallog.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -8,12 +8,18 @@ import ( reallog "log" ) -var daemonMode bool = false - func DaemonMode(b bool) { daemonMode = b } +func DaemonShow() { + if daemonMode { + fmt.Println("daemonMode=true") + } else { + fmt.Println("daemonMode=false") + } +} + func realPrintln(a ...any) { if daemonMode { fmt.Println(a...) |
