add DEBUG option

This commit is contained in:
ElevenNotes
2025-02-07 10:49:24 +01:00
parent 63d616adfd
commit 58f22ed34c
3 changed files with 9 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
### 🪄 Features
* remove truncation from clients.html
* add DEBUG option via enivornment variable DEBUG

View File

@@ -20,6 +20,7 @@ ARG APP_VERSION=stable
ENV PYKMS_LICENSE_PATH=/opt/py-kms/LICENSE
ENV PYKMS_VERSION_PATH=/opt/py-kms/VERSION
ENV PORT=8080
ENV LOG_LEVEL=INFO
# :: multi-stage
COPY ./LICENSE /opt/py-kms

View File

@@ -1,8 +1,14 @@
#!/bin/ash
if [ -z "${1}" ]; then
if [ ! -z "${DEBUG}" ]; then
LOG_LEVEL="DEBUG"
eleven log debug "setting kms-gui log level to DEBUG"
fi
cd /opt/py-kms
set -- "gunicorn" \
--log-level INFO \
--log-level ${LOG_LEVEL} \
pykms_WebUI:app
eleven log start