Skip to content

Commit

Permalink
fix(CosmosFullNode): Log pod name not the entire pod (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNix committed Jul 14, 2023
1 parent 52504cc commit b29dfab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/selfhealing_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ func (r *SelfHealingReconciler) mitigateHeightDrift(ctx context.Context, reporte
for _, pod := range pods {
// CosmosFullNodeController will detect missing pod and re-create it.
if err := r.Delete(ctx, pod); kube.IgnoreNotFound(err) != nil {
reporter.Error(err, "Failed to delete pod", "pod", pod)
reporter.Error(err, "Failed to delete pod", "pod", pod.Name)
reporter.RecordError("HeightDriftMitigationDeletePod", err)
continue
}
reporter.Info("Deleted pod for meeting height drift threshold", "pod", pod)
reporter.Info("Deleted pod for meeting height drift threshold", "pod", pod.Name)
deleted++
}
if deleted > 0 {
Expand Down

0 comments on commit b29dfab

Please sign in to comment.