cloudnative-pg icon indicating copy to clipboard operation
cloudnative-pg copied to clipboard

[Chore]: avoid logging the complete Pod definition when triggering a failover/switchover

Open leonardoce opened this issue 1 year ago • 0 comments

Is there an existing issue already for this bug?

  • [X] I have searched for an existing issue, and could not find anything. I believe this is a new bug.

I have read the troubleshooting guide

  • [X] I have read the troubleshooting guide and I think this is a new bug.

I am running a supported version of CloudNativePG

  • [X] I have read the troubleshooting guide and I think this is a new bug.

Contact Details

[email protected]

Version

1.22.2

What version of Kubernetes are you using?

1.29

What is your Kubernetes environment?

Self-managed: kind (evaluation)

How did you install the operator?

YAML manifest

What happened?

CNPG logs the Pod definition of every instance when triggering a switchover or a failover. Perhaps having just the replication status is enough, and we can reserve the full Pod logging to a tracing level.

This would help to enhance the readability of our logs.

Cluster resource

No response

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

leonardoce avatar Apr 15 '24 15:04 leonardoce