mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
parent
161ce3b3c3
commit
493a01c4fe
@ -102,7 +102,11 @@ func (l *Logger) WithFields(fields Fields) (ret *Logger) {
|
||||
}
|
||||
|
||||
func (l *Logger) WithError(err error) *Logger {
|
||||
return l.WithField(FieldError, err.Error())
|
||||
val := interface{}(nil)
|
||||
if err != nil {
|
||||
val = err.Error()
|
||||
}
|
||||
return l.WithField(FieldError, val)
|
||||
}
|
||||
|
||||
func (l *Logger) Debug(msg string) {
|
||||
|
Loading…
Reference in New Issue
Block a user