aboutsummaryrefslogtreecommitdiff
path: root/clog/clog.go
diff options
context:
space:
mode:
Diffstat (limited to 'clog/clog.go')
-rw-r--r--clog/clog.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/clog/clog.go b/clog/clog.go
index 8401665..b876574 100644
--- a/clog/clog.go
+++ b/clog/clog.go
@@ -6,7 +6,7 @@ import (
)
func log(str string, keyvals []any) {
- fmt.Print(str + " ")
+ fmt.Fprint(os.Stderr, str + " ")
for i, j := range keyvals {
if i&1 == 0 {
fmt.Fprintf(os.Stderr, "%v=", j)
@@ -16,7 +16,7 @@ func log(str string, keyvals []any) {
fmt.Fprintf(os.Stderr, "%#v ", j)
}
}
- fmt.Fprintln(os.Stderr, "\n")
+ fmt.Fprintln(os.Stderr)
}
func Error(str string, keyvals ...any) {