mercure icon indicating copy to clipboard operation
mercure copied to clipboard

How to set log level in helm chart

Open xvilo opened this issue 1 year ago • 1 comments

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
        }
"

xvilo avatar Jun 06 '24 15:06 xvilo

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.

mxmp210 avatar Jun 10 '24 11:06 mxmp210

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 25 '25 01:02 stale[bot]