From 2a6c4f4d7aea4ef1f0383dc9eb4e7eec1f1b878b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Wed, 19 Oct 2016 11:29:27 +0200 Subject: [PATCH] minor change --- gologger.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gologger.go b/gologger.go index f835d36..d53e653 100644 --- a/gologger.go +++ b/gologger.go @@ -134,7 +134,6 @@ func (l *Logger) LogEvent(event string) { } func (l *Logger) LogError(err error) { - estring := strings.TrimSuffix(fmt.Sprintf("%v", err), "\n") - l.errorf.WriteString(time.Now().Format(time.UnixDate) + ": " + estring + "\n") + l.errorf.WriteString(time.Now().Format(time.UnixDate) + ": " + err.Error() + "\n") l.splitErrorLog() } -- 1.8.1.2