Skip to content

Configure or limit operator's logs #849

Answered by Zerpet
flagsibh asked this question in Q&A
Discussion options

You must be logged in to vote

There's a not-so-great approach to set the log level to error. You can modify the Deployment manifest and add the following (abbreviated):

spec:
  template:
    spec:
      containers:
      - command:
         - /manager
        args:
        - --zap-log-level=error

The accepted values for this flag are debug, info and error. There's no warning in the standard levels that we use in the code. Be aware that changing the log level will make harder to debug the operators.

Edit: hit enter too soon :(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flagsibh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants