go-commons icon indicating copy to clipboard operation
go-commons copied to clipboard

logging.GetLogger does not do what we think it does

Open yorinasub17 opened this issue 5 years ago • 0 comments

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.

yorinasub17 avatar Nov 28 '18 21:11 yorinasub17