temporarily disable warning message in NegotiateVersion

pull/6/head
Chao Xu 2015-09-30 21:18:50 -07:00
parent f8a9943d90
commit dfdbaec577
1 changed files with 5 additions and 3 deletions

View File

@ -228,9 +228,11 @@ func NegotiateVersion(client *Client, c *Config, version string, clientRegistere
if serverVersions.Has(clientVersion) {
// Version was not explicitly requested in command config (--api-version).
// Ok to fall back to a supported version with a warning.
if len(version) != 0 {
glog.Warningf("Server does not support API version '%s'. Falling back to '%s'.", version, clientVersion)
}
// TODO: caesarxuchao: enable the warning message when we have
// proper fix. Please refer to issue #14895.
// if len(version) != 0 {
// glog.Warningf("Server does not support API version '%s'. Falling back to '%s'.", version, clientVersion)
// }
return clientVersion, nil
}
}