mirror of
https://github.com/misadeks/tetra-bluestation.git
synced 2026-08-29 07:09:02 +00:00
journald was rate-limiting bluestation-bs ("Suppressed ~6,200 messages" every
30s) because the stack logged a per-frame/per-burst firehose at debug/info by
default. Logging-only change; no protocol/timing/DSP behavior touched.
- debug.rs get_default_stdout_filter(): now honors RUST_LOG (full override, e.g.
RUST_LOG=debug|trace or per-module) and otherwise defaults to a quiet `info`.
Removed the hardcoded per-module `=debug` directives (umac/mle/llc/cmce/mm/...)
that forced the flood; kept messagerouter/bitbuffer=warn.
- Demoted the highest-rate lines so steady-state is ~silent and `debug` stays
readable:
- every entity's per-message `rx_prim: {:?}` dump: debug -> trace (phy/lmac/
umac/mle/mm/cmce/llc/sndcp, MS + BS).
- per-frame PDU decode dumps (MacSync/MacSysinfo/MacResource/AccessAssign/
AccessAssignFr18/DMleSync/DMleSysinfo `<- {:?}`): debug -> trace.
- per-frame `rx_broadcast_sysinfo: Updated TdmaTime`: info -> debug.
- per-burst PhyMs "queued uplink burst", Modulator(Ul) "pending burst vs TX
window", Modulator "uplink burst active part emitted (SN0)": info -> debug.
- Kept at INFO (low-rate, useful): startup/SDR-open/freqs, retune, downlink
synchronized, registration/cell-(re)selection/call/floor events, all warnings.
- example_config/bluestation-ms.service: Environment=RUST_LOG=info (documented
how to bump). Supervisor: export RUST_LOG="${RUST_LOG:-info}".
- docs/MS_CONFIG.md: new "Logging verbosity" section.
Acceptance: default config -> registered idle emits only occasional lines, no
"Suppressed N messages"; RUST_LOG=debug/trace restores full detail.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>