add log_level env var (#728)

This commit is contained in:
Adil Hafeez 2026-02-09 09:25:43 -08:00 committed by GitHub
parent 4a6cea3545
commit e056ddbcd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 5 deletions

View file

@ -4,7 +4,7 @@ nodaemon=true
[program:brightstaff]
command=sh -c "\
envsubst < /app/arch_config_rendered.yaml > /app/arch_config_rendered.env_sub.yaml && \
RUST_LOG=info \
RUST_LOG=${LOG_LEVEL:-info} \
ARCH_CONFIG_PATH_RENDERED=/app/arch_config_rendered.env_sub.yaml \
/app/brightstaff 2>&1 | \
tee /var/log/brightstaff.log | \
@ -18,8 +18,8 @@ stderr_logfile_maxbytes=0
command=/bin/sh -c "\
uv run python -m planoai.config_generator && \
envsubst < /etc/envoy/envoy.yaml > /etc/envoy.env_sub.yaml && \
envoy -c /etc/envoy.env_sub.yaml \
--component-log-level wasm:info \
envoy -c /etc/envoy.env_sub.yaml \
--component-log-level wasm:${LOG_LEVEL:-info} \
--log-format '[%%Y-%%m-%%d %%T.%%e][%%l] %%v' 2>&1 | \
tee /var/log/envoy.log | \
while IFS= read -r line; do echo '[plano_logs]' \"$line\"; done"