Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

level up log message #686

Merged
merged 2 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 controllers/redisreplication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (r *RedisReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Req

// Check that the Leader and Follower are ready in redis replication
if int32(redisReplicationInfo.Status.ReadyReplicas) != totalReplicas {
reqLogger.Info("Redis leader and follower nodes are not ready yet", "Ready.Replicas", strconv.Itoa(int(redisReplicationInfo.Status.ReadyReplicas)), "Expected.Replicas", totalReplicas)
reqLogger.Info("Redis replication nodes are not ready yet", "Ready.Replicas", strconv.Itoa(int(redisReplicationInfo.Status.ReadyReplicas)), "Expected.Replicas", totalReplicas)
return ctrl.Result{RequeueAfter: time.Second * 60}, nil
}

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
Loading