Skip to content

Commit

Permalink
Merge pull request #934 from giuseppe/overlay-log-level-metacopy
Browse files Browse the repository at this point in the history
overlay: make userxattr,metacopy=on debug message
  • Loading branch information
rhatdan authored Jun 4, 2021
2 parents 337b402 + 9fe9a37 commit 5f25eee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,11 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
if d.usingMetacopy {
optsList = append(optsList, "metacopy=on")
} else {
logrus.Warnf("ignoring metacopy option from storage.conf, not supported with booted kernel")
logLevel := logrus.WarnLevel
if unshare.IsRootless() {
logLevel = logrus.DebugLevel
}
logrus.StandardLogger().Logf(logLevel, "ignoring metacopy option from storage.conf, not supported with booted kernel")
}
}
}
Expand Down

0 comments on commit 5f25eee

Please sign in to comment.