*: fix logrus.Warn[f]
Signed-off-by: Antonio Murdaca <runcom@redhat.com> Upstream-commit: 44ccbb317c2ca67fd8a88147b1ff80ce83d453cc Component: engine
This commit is contained in:
@@ -1815,7 +1815,7 @@ func (devices *DeviceSet) initDevmapper(doInit bool) error {
|
||||
|
||||
if devices.thinPoolDevice == "" {
|
||||
if devices.metadataLoopFile != "" || devices.dataLoopFile != "" {
|
||||
logrus.Warnf("devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.")
|
||||
logrus.Warn("devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -507,7 +507,7 @@ func (d *Driver) GetCustomImageInfos() ([]CustomImageInfo, error) {
|
||||
|
||||
versionData := strings.Split(imageData.Version, ".")
|
||||
if len(versionData) != 4 {
|
||||
logrus.Warn("Could not parse Windows version %s", imageData.Version)
|
||||
logrus.Warnf("Could not parse Windows version %s", imageData.Version)
|
||||
} else {
|
||||
// Include just major.minor.build, skip the fourth version field, which does not influence
|
||||
// OS compatibility.
|
||||
|
||||
Reference in New Issue
Block a user