Skip to content

Commit

Permalink
KUBEDR-5932: Comment out unnecessary log message
Browse files Browse the repository at this point in the history
  • Loading branch information
0x113 committed Aug 13, 2024
1 parent c5e648c commit b77551a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/volumehelper/volume_policy_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func (v *volumeHelperImpl) ShouldPerformSnapshot(obj runtime.Unstructured, group

pv, err = kubeutil.GetPVForPVC(pvc, v.client)
if err != nil {
v.logger.WithError(err).Errorf("fail to get PV for PVC %s", pvc.Namespace+"/"+pvc.Name)
// Due to this log message, some errors are counted twice. For this reason, we have commented it out.
//v.logger.WithError(err).Errorf("fail to get PV for PVC %s", pvc.Namespace+"/"+pvc.Name)
return false, err
}
}
Expand Down

0 comments on commit b77551a

Please sign in to comment.