Change log level
Warning should be printed with real `logrus.Warn` Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
parent
9c3cca23e9
commit
98f74f8383
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func (s *Server) userAgentMiddleware(handler httputils.APIFunc) httputils.APIFun
|
|||
}
|
||||
|
||||
if len(userAgent) == 2 && !dockerVersion.Equal(version.Version(userAgent[1])) {
|
||||
logrus.Debugf("Warning: client and server don't have the same version (client: %s, server: %s)", userAgent[1], dockerVersion)
|
||||
logrus.Warnf("Warning: client and server don't have the same version (client: %s, server: %s)", userAgent[1], dockerVersion)
|
||||
}
|
||||
}
|
||||
return handler(ctx, w, r, vars)
|
||||
|
|
Loading…
Add table
Reference in a new issue