Merge remote-tracking branch 'upstream/master'

This commit is contained in:
tbunyk
2019-09-03 15:29:19 +03:00
19 changed files with 241 additions and 110 deletions
+1 -2
View File
@@ -108,8 +108,7 @@ func (entry *Entry) WithError(err error) *Entry {
// Add a context to the Entry.
func (entry *Entry) WithContext(ctx context.Context) *Entry {
entry.Context = ctx
return entry
return &Entry{Logger: entry.Logger, Data: entry.Data, Time: entry.Time, err: entry.err, Context: ctx}
}
// Add a single field to the Entry.