Merge pull request #73 from unistack-org/logger

logger: fix fields
This commit is contained in:
Василий Толстов 2022-01-19 19:54:50 +03:00 committed by GitHub
commit 1f3834e187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,8 @@ func (l *defaultLogger) Fields(fields ...interface{}) Logger {
} else if len(fields)%2 != 0 {
fields = fields[:len(fields)-1]
}
nl.logFunc = l.logFunc
nl.logfFunc = l.logfFunc
nl.opts.Fields = append(nl.opts.Fields, fields...)
return nl
}