-
Notifications
You must be signed in to change notification settings - Fork 980
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 can I change the Patroni log level? #1203
Comments
@CyberDem0n may know the answer to part two. |
Just raised patroni/patroni#1800 which is closely related, I think. |
@Jan-M @CyberDem0n I have tried your suggestion to pass the environment variable I'm using the latest build of Spilo (from master) which runs Patroni
|
Did you manage to set the patroni env vars? I also tried the variable |
A little late, but yes, most environment variables are ignored so that secret information is not leaked. Spilo does this, see the issue I raised here zalando/spilo#718. |
* Update postgresql CRD to include patroni log configuration * Have operator include log config (if available) in the `SPILO_CONFIGURATION` environment variable.
`patroni 2.1.7 patroni.yml log: |
any new to change log level? |
Not have ability to operate such basic things for troubleshooting is very critical |
For my production postgres clusters I'd like to limit log messages to a reasonable amount. Therefore I want to get rid off all the Patroni log messages that are logged - about every 10 seconds - at the
INFO
level, e.g.:I found in the Patroni documentation that I can set the environment variable
PATRONI_LOG_LEVEL
, but I don't know how I can achieve this when Patroni is managed with the Postgres Operator (I use versionv1.5.0
). I tried setting it in theConfigMap
that I also use to configure WAL backups, but that hadn't any effect. Can anybody point me in the right direction?Besides these Patroni messages I also see the following message about every 30 seconds:
I don't know where it is coming from and how to suppress these message. Again, any help is appreciated.
The text was updated successfully, but these errors were encountered: