Skip to content

Commit 61c97fc

Browse files
committed
Log to stdout
Prevent writing to log file by default and write to stdout This can be overridden by LOG_CHANNEL and LOG_LEVEL
1 parent f45cd57 commit 61c97fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rootfs/etc/cont-init.d/05-svc-dispatcher.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ DB_PORT=${DB_PORT:-3306}
2929
DB_NAME=${DB_NAME:-librenms}
3030
DB_USER=${DB_USER:-librenms}
3131
DB_TIMEOUT=${DB_TIMEOUT:-60}
32+
LOG_CHANNEL=${LOG_CHANNEL:-stdout}
33+
LOG_LEVEL=${LOG_LEVEL:-warning}
34+
STDOUT_LOG_LEVEL=${STDOUT_LOG_LEVEL:-$LOG_LEVEL}
3235

3336
SIDECAR_DISPATCHER=${SIDECAR_DISPATCHER:-0}
3437
#DISPATCHER_NODE_ID=${DISPATCHER_NODE_ID:-dispatcher1}

0 commit comments

Comments
 (0)