jenkinsci / kubernetes-operator

Kubernetes native Jenkins Operator
https://jenkinsci.github.io/kubernetes-operator
Other
597 stars 232 forks source link

How to change log level ? #692

Open necipakca opened 2 years ago

necipakca commented 2 years ago

I could not find and information about change log level of operator. Currently it is comes with DEBUG level and it produces insane logs which is I do not need.

papi83dm commented 2 years ago

@necipakca did you figure out how to do this?

necipakca commented 2 years ago

Nope :) I have excluded Jenkins operator logs from fluent-bit.

chrisgrove-keysight commented 2 years ago

I remembered the tidbit Jenkins Kubernetes Operator uses the Operator SDK and found the logging documention https://sdk.operatorframework.io/docs/building-operators/golang/references/logging/

We use separate namespaces for Jenkins and the operator so it was trivial to add the --zap-log-level=info to the args list. The logging level is now back to sane.

`

papi83dm commented 2 years ago

@chrisgrove-keysight Thanks, However the helm chart does not support passing custom args.

https://github.com/jenkinsci/kubernetes-operator/blob/master/chart/jenkins-operator/templates/operator.yaml#L34

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still affecting you, just comment with any updates and we'll keep it open. Thank you for your contributions.