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.

Fixed issue #23459

Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
Upstream-commit: fa710e504b0e3e51d4031790c18621b02dcd2600
Component: engine
This commit is contained in:
Daehyeok Mun
2016-10-31 22:05:01 -06:00
parent 80b8147332
commit 07a831dfc2
9 changed files with 15 additions and 15 deletions

View File

@ -62,7 +62,7 @@ func (pm *Manager) Pull(name string, metaHeader http.Header, authConfig *types.A
name = ref.String()
if p, _ := pm.pluginStore.GetByName(name); p != nil {
logrus.Debugf("plugin already exists")
logrus.Debug("plugin already exists")
return nil, fmt.Errorf("%s exists", name)
}

View File

@ -113,7 +113,7 @@ func Pull(ref reference.Named, rs registry.Service, metaheader http.Header, auth
return nil, err
}
if !confirmedV2 {
logrus.Debugf("pull.go: !confirmedV2")
logrus.Debug("pull.go: !confirmedV2")
return nil, ErrUnsupportedRegistry
}
logrus.Debugf("Trying to pull %s from %s %s", repoInfo.Name(), endpoint.URL, endpoint.Version)