mirror of
https://github.com/jmcorgan/fips.git
synced 2026-07-30 19:46:15 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user