Change log level
Warning should be printed with real `logrus.Warn` Signed-off-by: Zhang Wei <zhangwei555@huawei.com> Upstream-commit: 98f74f8383241d2f0a5ed8b17f7016e24af899fa Component: engine
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user