Skip to content
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

[bitnami/pgbouncer] Option to disable writing logs to a file #68508

Closed
taraspos opened this issue Jul 1, 2024 · 1 comment · Fixed by #68905
Closed

[bitnami/pgbouncer] Option to disable writing logs to a file #68508

taraspos opened this issue Jul 1, 2024 · 1 comment · Fixed by #68905
Assignees

Comments

@taraspos
Copy link
Contributor

taraspos commented Jul 1, 2024

Name and Version

bitnami/pgbouncer:1.22.1

What is the problem this feature will solve?

Current configuration forces pgbouncer logs to be written to the file, in addition to the stderr logging1.

# General PgBouncer settings
export PGBOUNCER_LOG_FILE="${PGBOUNCER_LOG_FILE:-${PGBOUNCER_LOG_DIR}/pgbouncer.log}"

This result in unnecessary pgbouncer.log which is taking a lot of the space on the local filesystem.

What is the feature you are proposing to solve the problem?

Introduce conditional check to add logfile entry to the ini file when

PGBOUNCER_LOG_FILE=disable

What alternatives have you considered?

No response

Footnotes

  1. logfile
    Specifies the log file. For daemonization (-d), either this or syslog need to be set.

    The log file is kept open, so after rotation, kill -HUP or on console RELOAD; should be done. On Windows, the service must be stopped and started.

    Note that setting logfile does not by itself turn off logging to stderr. Use the command-line option -q or -d for that.

    Default: not set

    https://www.pgbouncer.org/config.html

@github-actions github-actions bot added the triage Triage is needed label Jul 1, 2024
@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants