diff options
| author | Jeff Carr <[email protected]> | 2025-08-16 16:24:47 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-16 21:50:21 -0500 |
| commit | 8c7078908b05357e199af4ee85fd2170d6dbdf8d (patch) | |
| tree | fe22069da51eb6b464f6e98b40a5104b1230d399 /reallog.go | |
| parent | 466a3c60768e918cc292b6a59caa98262ca2af71 (diff) | |
more compat for 'fmt' packagev0.22.17
Diffstat (limited to 'reallog.go')
| -rw-r--r-- | reallog.go | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -19,7 +19,6 @@ func Timestamps(b bool) { timestamps = b } - var captureMode io.Writer func CaptureMode(w io.Writer) { @@ -64,11 +63,11 @@ func realPrintln(a ...any) { } else { // put timestamps on each line if captureMode == nil { - if timestamps { - reallog.Println(a...) - } else { - fmt.Println(a...) - } + if timestamps { + reallog.Println(a...) + } else { + fmt.Println(a...) + } } else { // TODO: add datestamp fmt.Fprintln(captureMode, a...) |
