Improve logging

This commit is contained in:
Tomasz Sęk
2020-01-01 22:16:36 +01:00
parent 3e72863f32
commit c51fab9a2c
@@ -130,7 +130,7 @@ func (bar *BackupAndRestore) Restore(jenkinsClient jenkinsclient.Jenkins) error
return nil
}
if jenkins.Status.LastBackup == 0 {
bar.logger.Info("Skipping restore backup")
bar.logger.V(log.VDebug).Info("Skipping restore backup")
if jenkins.Status.PendingBackup == 0 {
jenkins.Status.PendingBackup = 1
return bar.k8sClient.Update(context.TODO(), jenkins)