mirror of
https://github.com/mailgun/groupcache.git
synced 2024-11-16 14:10:04 +00:00
feat(logger): add a new field category in the log
This commit is contained in:
parent
14bc5ab47f
commit
121623bc02
@ -350,9 +350,10 @@ func (g *Group) load(ctx context.Context, key string, dest Sink) (value ByteView
|
||||
|
||||
if logger != nil {
|
||||
logger.WithFields(logrus.Fields{
|
||||
"err": err,
|
||||
"key": key,
|
||||
}).Error("groupcache: error retrieving key from peers")
|
||||
"err": err,
|
||||
"key": key,
|
||||
"category": "groupcache",
|
||||
}).Error("error retrieving key from peers")
|
||||
}
|
||||
|
||||
g.Stats.PeerErrors.Add(1)
|
||||
|
Loading…
Reference in New Issue
Block a user