Skip to content

Commit

Permalink
[bitnami/pgbouncer] add option to disable logfile
Browse files Browse the repository at this point in the history
Signed-off-by: Taras Postument <taras.postument@gmail.com>
  • Loading branch information
taraspos committed Jul 5, 2024
1 parent c3f15bd commit 102df2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ pgbouncer_escape_auth() {
pgbouncer_initialize() {
info "Initializing PgBouncer..."

if [[ "$PGBOUNCER_LOG_FILE" == "disable" ]]; then
PGBOUNCER_LOG_FILE=""
fi

# Clean logs, pids and configuration files from previous restarts
rm -f "$PGBOUNCER_PID_FILE" "$PGBOUNCER_LOG_FILE" "$PGBOUNCER_AUTH_FILE" "$PGBOUNCER_CONF_FILE"

Expand Down
2 changes: 1 addition & 1 deletion bitnami/pgbouncer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ docker build -t bitnami/APP:latest .

| Name | Description | Default Value |
|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------|
| `PGBOUNCER_LOG_FILE` | PgBouncer log file. | `${PGBOUNCER_LOG_DIR}/pgbouncer.log` |
| `PGBOUNCER_LOG_FILE` | PgBouncer logfile. By default logs are written to stdout **and** the `PGBOUNCER_LOG_FILE`. In order to disable logging to the file set `PGBOUNCER_LOG_FILE=disable` | `${PGBOUNCER_LOG_DIR}/pgbouncer.log` |
| `PGBOUNCER_DATABASE` | PgBouncer advertised database. | `postgres` |
| `PGBOUNCER_PORT` | PgBouncer port | `6432` |
| `PGBOUNCER_LISTEN_ADDRESS` | PgBouncer listen address | `0.0.0.0` |
Expand Down

0 comments on commit 102df2f

Please sign in to comment.