Skip to content

Commit

Permalink
adjust some log level
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <yang.wu@daocloud.io>
  • Loading branch information
drivebyer committed Oct 31, 2023
1 parent f7e6a28 commit eee26a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
value: "false"
args:
- --leader-elect
- -zap-log-level=info
- -zap-log-level=debug
- -enable-webhooks=false
image: controller
imagePullPolicy: Never
Expand Down
2 changes: 1 addition & 1 deletion k8sutils/poddisruption.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func GetPodDisruptionBudget(namespace string, pdb string) (*policyv1.PodDisrupti
}
pdbInfo, err := generateK8sClient().PolicyV1().PodDisruptionBudgets(namespace).Get(context.TODO(), pdb, getOpts)
if err != nil {
logger.Info("Redis PodDisruptionBudget get action failed")
logger.V(1).Info("Redis PodDisruptionBudget get action failed")
return nil, err
}
logger.V(1).Info("Redis PodDisruptionBudget get action was successful")
Expand Down
2 changes: 1 addition & 1 deletion k8sutils/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func getService(namespace string, service string) (*corev1.Service, error) {
}
serviceInfo, err := generateK8sClient().CoreV1().Services(namespace).Get(context.TODO(), service, getOpts)
if err != nil {
logger.Info("Redis service get action is failed")
logger.V(1).Info("Redis service get action is failed")
return nil, err
}
logger.V(1).Info("Redis service get action is successful")
Expand Down
2 changes: 1 addition & 1 deletion k8sutils/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ func GetStatefulSet(namespace string, stateful string) (*appsv1.StatefulSet, err
}
statefulInfo, err := generateK8sClient().AppsV1().StatefulSets(namespace).Get(context.TODO(), stateful, getOpts)
if err != nil {
logger.Info("Redis statefulset get action failed")
logger.V(1).Info("Redis statefulset get action failed")
return nil, err
}
logger.V(1).Info("Redis statefulset get action was successful")
Expand Down

0 comments on commit eee26a4

Please sign in to comment.