diff options
| -rw-r--r-- | container/entrypoint | 6 | ||||
| -rw-r--r-- | doc/administration/docker.rst | 1 | 
2 files changed, 7 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 diff --git a/doc/administration/docker.rst b/doc/administration/docker.rst index 06073ca..ed44a05 100644 --- a/doc/administration/docker.rst +++ b/doc/administration/docker.rst @@ -81,6 +81,7 @@ Environment variable            Setting  ``EMAIL_SMTP_URL``              ``email.smtp_url``  ``EMAIL_USERNAME``              ``email.username``  ``EMAIL_PASSWORD``              ``email.password`` +``LOGLEVEL``                    ``[logger_fietsboek] level``  =============================== ===============================  .. [#f1] Required.  | 
