ceph: debug log the k8s version instead of info
The info log is rather verbose with all the filtering of the K8s version like the following: returning version v1.19.0 instead of v1.19.0+43983cd Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
1 file changed
+1
-1
@@ -73,7 +73,7 @@ func GetK8SVersion(clientset kubernetes.Interface) (*version.Version, error) {
|
||||
index := strings.Index(serverVersion.GitVersion, "+")
|
||||
if index != -1 {
|
||||
newVersion := serverVersion.GitVersion[:index]
|
||||
logger.Infof("returning version %s instead of %s", newVersion, serverVersion.GitVersion)
|
||||
logger.Debugf("returning version %s instead of %s", newVersion, serverVersion.GitVersion)
|
||||
serverVersion.GitVersion = newVersion
|
||||
}
|
||||
return version.MustParseSemantic(serverVersion.GitVersion), nil
|
||||
|
||||
Reference in new issue
Block a user