From 1fbdcae68a6650c6b8b965c20d4134025d27d24c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 29 Mar 2022 18:12:57 +0400 Subject: [PATCH] Don't print date to stdout. --- pkg/logging/logger.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/logging/logger.go b/pkg/logging/logger.go index 95283b4..26c6eb9 100644 --- a/pkg/logging/logger.go +++ b/pkg/logging/logger.go @@ -37,7 +37,7 @@ func (l *Logger) Println(v ...interface{}) { fmt.Fprintln(l.file, nowStr, v) if l.toStdout { - fmt.Println(nowStr, v) + fmt.Println(v) } } @@ -55,7 +55,7 @@ func (l *Logger) Printf(format string, v ...interface{}) { fmt.Fprintf(l.file, nowStr+" "+format, v...) if l.toStdout { - fmt.Printf(nowStr+" "+format, v...) + fmt.Printf(format, v...) } } @@ -67,7 +67,7 @@ func (l *Logger) Fatalln(v ...interface{}) { fmt.Fprintln(l.file, nowStr, v) if l.toStdout { - fmt.Println(nowStr, v) + fmt.Println(v) } l.file.Close() @@ -87,7 +87,7 @@ func (l *Logger) Fatalf(format string, v ...interface{}) { fmt.Fprintf(l.file, nowStr+" "+format, v...) if l.toStdout { - fmt.Printf(nowStr+" "+format, v...) + fmt.Printf(format, v...) } l.file.Close()