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

How to set log level in helm chart #915

Open
xvilo opened this issue Jun 6, 2024 · 1 comment
Open

How to set log level in helm chart #915

xvilo opened this issue Jun 6, 2024 · 1 comment

Comments

@xvilo
Copy link

xvilo commented Jun 6, 2024

Hi,

The documentation and existing issues are unclear on how to change the log level with the helm chart. I have the hub running in Kubernetes, but my JWT token is not accepted. I set out check the logs, but those are only info. I would like to see more logs but I can not get the right config combination with having tried the following values:

caddyExtraConfig: "
log {
        level WARN
}
"
caddyExtraConfig: "
  level WARN
"
globalOptions: "
  level WARN
"
globalOptions: "
        log {
                level WARN
        }
"
@mxmp210
Copy link

mxmp210 commented Jun 10, 2024

The log override can be done via {$CADDY_SERVER_EXTRA_DIRECTIVES} so equivalent to that in helm chart would be caddy-extra-directives key mapped at Caddy Env

Try setting extra directives which would set proper logger for your server directive :

caddyExtraDirectives: "
        log {
                level WARN
        }
"

However I'd recommend building your own Custom Caddyfile Config and add sections necessary compared to overriding the ones in default Caddyfile, the default chart doesn't have config to replace bootstrap code to get started quickly, but you can maintain your own as per requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants