Merge pull request #8143 from mxpv/log
Add Fields type alias to log package
This commit is contained in:
@@ -174,7 +174,7 @@ can be used and modified as necessary as a custom configuration.`
|
||||
log.G(ctx).WithError(w).Warn("cleanup temp mount")
|
||||
}
|
||||
|
||||
log.G(ctx).WithFields(logrus.Fields{
|
||||
log.G(ctx).WithFields(log.Fields{
|
||||
"version": version.Version,
|
||||
"revision": version.Revision,
|
||||
}).Info("starting containerd")
|
||||
|
||||
@@ -81,7 +81,7 @@ var pruneReferencesCommand = cli.Command{
|
||||
|
||||
for k := range info.Labels {
|
||||
if isLayerLabel(k) {
|
||||
log.G(ctx).WithFields(logrus.Fields{
|
||||
log.G(ctx).WithFields(log.Fields{
|
||||
"digest": info.Digest,
|
||||
"label": k,
|
||||
}).Debug("Removing label")
|
||||
|
||||
Reference in New Issue
Block a user