Add node.log_level config, remove RUST_LOG from service files

Add log_level field to NodeConfig (case-insensitive, default: info).
The daemon now loads config before initializing tracing so the
configured level takes effect. RUST_LOG env var still overrides if
set.

Remove hardcoded Environment=RUST_LOG=info from systemd units and
OpenWrt procd init script — these prevented config-driven log levels
from working.
This commit is contained in:
Johnathan Corgan
2026-03-25 15:34:47 +00:00
parent d801fd0052
commit cb6f263a1d
5 changed files with 43 additions and 34 deletions
@@ -14,7 +14,6 @@ start_service() {
procd_open_instance
procd_set_param command "$PROG" --config "$CONFIG"
procd_set_param env RUST_LOG=info
# Respawn: restart after 5 s, give up after 5 consecutive failures within
# a 3600 s window, then reset the failure counter and try again.
procd_set_param respawn 3600 5 5