Fix logrus formatting
This fix tries to fix logrus formatting by removing `f` from `logrus.[Error|Warn|Debug|Fatal|Panic|Info]f` when formatting string is not present. This fix fixes #23459. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: a72b45dbec3caeb3237d1af5aedd04adeb083571 Component: engine
This commit is contained in:
@ -279,7 +279,7 @@ func LogInit(logger DevmapperLogger) {
|
||||
// SetDevDir sets the dev folder for the device mapper library (usually /dev).
|
||||
func SetDevDir(dir string) error {
|
||||
if res := DmSetDevDir(dir); res != 1 {
|
||||
logrus.Debugf("devicemapper: Error dm_set_dev_dir")
|
||||
logrus.Debug("devicemapper: Error dm_set_dev_dir")
|
||||
return ErrSetDevDir
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user