-
Notifications
You must be signed in to change notification settings - Fork 93
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
pgbackrest-info.sh expectations on --log-level-console #401
Comments
🤔 Does |
@cbandy good catch! Given my tests, yes, it has the same similar negative effect... Any program parsing the output of So likely, Thank you ! |
Great catch! Thank you @cbandy |
Looking at the other log options, should we also set |
I would think that users would probably want all actions that backrest does logged there as they intend with their settings. Would also provide a place to look for more detailed info if something does go wrong with one of the script calls. |
pgBackRest's default for |
Describe the issue:
In https://github.com/CrunchyData/pgmonitor/blob/3d31a667b0a08f0aa6180655e1cc61a44867e6cc/postgres_exporter/linux/pgbackrest-info.sh ,
There's an expectation on the --log-level-console that is the default to "info".
But when used in an environment where that log-level is set somewhere to something else (eg. "debug"), then the output will add extra (debug or other) information, so the script returns wrong things.
A solution could be to enforce --log-level-console=info on any of the calls to "pgbackrest --output=json [...] info" ...
Describe the expected behavior:
A working script whatever the level of verbosity set in --log-level-console
Tell us about your environment:
The text was updated successfully, but these errors were encountered: