Commit 2a6c4f4d7aea4ef1f0383dc9eb4e7eec1f1b878b

Authored by Marko Tikvić
1 parent a99c98307c
Exists in master

minor change

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
... ... @@ -134,7 +134,6 @@ func (l *Logger) LogEvent(event string) {
134 134 }
135 135  
136 136 func (l *Logger) LogError(err error) {
137   - estring := strings.TrimSuffix(fmt.Sprintf("%v", err), "\n")
138   - l.errorf.WriteString(time.Now().Format(time.UnixDate) + ": " + estring + "\n")
  137 + l.errorf.WriteString(time.Now().Format(time.UnixDate) + ": " + err.Error() + "\n")
139 138 l.splitErrorLog()
140 139 }
... ...