From 82832388d7f80f50542d9a1486bb7a3439e28e16 Mon Sep 17 00:00:00 2001 From: DanielZhangQD Date: Thu, 5 Dec 2019 10:31:09 +0800 Subject: [PATCH] update log level --- pkg/controller/backup/backup_controller.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/controller/backup/backup_controller.go b/pkg/controller/backup/backup_controller.go index ad05692c031..9b62d31d70f 100644 --- a/pkg/controller/backup/backup_controller.go +++ b/pkg/controller/backup/backup_controller.go @@ -224,28 +224,28 @@ func validBackup(backup *v1alpha1.Backup) bool { name := backup.Name if backup.Spec.BR == nil { if backup.Spec.Cluster == "" { - glog.Infof("Missing Cluster config in spec of %s/%s", ns, name) + glog.Errorf("Missing Cluster config in spec of %s/%s", ns, name) return false } if backup.Spec.TidbSecretName == "" { - glog.Infof("Missing TidbSecretName config in spec of %s/%s", ns, name) + glog.Errorf("Missing TidbSecretName config in spec of %s/%s", ns, name) return false } if backup.Spec.StorageClassName == "" { - glog.Infof("Missing StorageClassName config in spec of %s/%s", ns, name) + glog.Errorf("Missing StorageClassName config in spec of %s/%s", ns, name) return false } if backup.Spec.StorageSize == "" { - glog.Infof("Missing StorageSize config in spec of %s/%s", ns, name) + glog.Errorf("Missing StorageSize config in spec of %s/%s", ns, name) return false } } else { if backup.Spec.BR.PDAddress == "" { - glog.Infof("PD address should be configured for BR in spec of %s/%s", ns, name) + glog.Errorf("PD address should be configured for BR in spec of %s/%s", ns, name) return false } if backup.Spec.S3 != nil && (backup.Spec.S3.Bucket == "" || backup.Spec.S3.Prefix == "") { - glog.Infof("Bucket and Prefix should be configured for BR in spec of %s/%s", ns, name) + glog.Errorf("Bucket and Prefix should be configured for BR in spec of %s/%s", ns, name) return false } }