pgbouncer
pgbouncer copied to clipboard
Raise errors from log_debug to either warning or error.
Some errors would be logged only in the debug log level, which means production setups won't see them. Those error messages are very useful when debugging corner cases, some of them might look like pgbouncer outages without the full story.
This patch doesn't add new logs, only raises the chatter up to a level where it's possible to relate strange behaviors with pgbouncer internal activity.
There is probably merit to this, but I'd need to do more analysis about when each message is expected to happen. Also, when promoting debug messages to user-facing, they should be rephrased to a more user-facing style.