Skip to content

Commit 58f22ed

Browse files
committed
add DEBUG option
1 parent 63d616a commit 58f22ed

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
### 🪄 Features
2-
* remove truncation from clients.html
2+
* add DEBUG option via enivornment variable DEBUG

arch.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ARG APP_VERSION=stable
2020
ENV PYKMS_LICENSE_PATH=/opt/py-kms/LICENSE
2121
ENV PYKMS_VERSION_PATH=/opt/py-kms/VERSION
2222
ENV PORT=8080
23+
ENV LOG_LEVEL=INFO
2324

2425
# :: multi-stage
2526
COPY ./LICENSE /opt/py-kms

rootfs/usr/local/bin/entrypoint.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/bin/ash
22
if [ -z "${1}" ]; then
3+
4+
if [ ! -z "${DEBUG}" ]; then
5+
LOG_LEVEL="DEBUG"
6+
eleven log debug "setting kms-gui log level to DEBUG"
7+
fi
8+
39
cd /opt/py-kms
410
set -- "gunicorn" \
5-
--log-level INFO \
11+
--log-level ${LOG_LEVEL} \
612
pykms_WebUI:app
713

814
eleven log start

0 commit comments

Comments
 (0)