diff options
Diffstat (limited to 'container/entrypoint')
-rw-r--r-- | container/entrypoint | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/container/entrypoint b/container/entrypoint index 0d404d6..c7f3b2d 100644 --- a/container/entrypoint +++ b/container/entrypoint @@ -47,6 +47,12 @@ if [[ ! -f "$CONFIG" ]] ; then if [[ -v EMAIL_PASSWORD ]] ; then sed -i '/^email\.password =/c email.password = '"$EMAIL_PASSWORD" "$CONFIG" fi + + if [[ -v LOGLEVEL ]] ; then + # We are only changing the fietsboek log level here, as SQLAlchemy + # produces a lot of noise. + sed -i '/\[logger_fietsboek\]/{N;s/level = .*/level = '"$LOGLEVEL"'/}' "$CONFIG" + fi fi # Make sure the data schema is up to date, or rather initialize it if this is |