Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option to disable printing stats to log #287
Currently many of users of pgbouncer don't use logs to monitor it. For example we are using influxdb+grafana+custom-plugin to collect stats and display it to dashboard. So we absolutely don't need printing stats to log. So I added ability to disable this behavior(by default printing is on). Doc has been updated to. Additionally stats_period was moved from "Log settings" to "General setting" to reflect that this property means stats refreshing period - not only period of writing info to log.
In the way you have implemented it, if stats logging is disabled, we would still set the timer and compute all the stats but then just not print them. That seems wasteful. The effect of disabling this functionality should be that the timer is not set to begin with.
You could also just set