Skip to content

Commit

Permalink
error to string
Browse files Browse the repository at this point in the history
  • Loading branch information
NV4RE committed Nov 23, 2023
1 parent 996befe commit 53a3c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zap_logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (l Logger) WithError(err error) log.Log {
return &l
}

return l.WithField("error", err)
return l.WithField("error", err.Error())
}

func (l Logger) WithTracing(sc trace.SpanContext) log.Log {
Expand Down

0 comments on commit 53a3c0e

Please sign in to comment.