Open yorinasub17 opened 5 years ago
WithField returns a logrus.Entry which contains the field information. We then return the attached Logger object, but logrus.Logger does not actually point back to the Entry. So we lose the Field information on return.
WithField
logrus.Entry
Logger
logrus.Logger
Entry
WithField
returns alogrus.Entry
which contains the field information. We then return the attachedLogger
object, butlogrus.Logger
does not actually point back to theEntry
. So we lose the Field information on return.