Improve logging

This commit is contained in:
Tomasz Sęk 2020-01-01 22:16:36 +01:00
parent 3e72863f32
commit c51fab9a2c
No known key found for this signature in database
GPG Key ID: DC356D23F6A644D0
1 changed files with 1 additions and 1 deletions

View File

@ -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)