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