woz_logquiet.c
PRETTY-gated runtime muting of benign upstream error spam.
Overview
PRETTY-gated runtime muting of benign upstream error spam. The stock Matter/BLE stack logs several non-fatal conditions at LOG_ERR/LOG_WRN (red/yellow): mDNS advertiser "incorrect state" churn, "Long dispatch time" perf notes, unsupported-attribute reads, the "No valid legacy adv to stop" BLE double-stop, and the empty-slot "Failed to get Access Document at index: 0" the access layer emits on first contact. All are expected on this bare DK bring-up and every one is proven benign by the healthy unlock that follows. A compile-time level cut can't remove just these: each noisy source shares its CONFIG_*_LOG_LEVEL with a source whose INFO lines drive the demo narrative (access_document shares CONFIG_DOOR_LOCK_APP_LOG_LEVEL with access_manager's "ACCESS GRANTED"/ranging lines; bt_adv shares CONFIG_BT_HCI_CORE_LOG_LEVEL), and a threshold below ERR still lets ERR through. So mute per-source at runtime. Reversible: compiled only under CONFIG_WOZ_PRETTY_SHELL (PRETTY=1). Drop PRETTY and every one of these lines returns for raw diagnosis. Needs CONFIG_LOG_RUNTIME_FILTERING=y (set in ports/nrf5340dk/overlays/woz-pretty.conf).
API
Fstatic int woz_logquiet_init(void)
One-shot init that mutes specified log sources by setting their filter to LOG_LEVEL_NONE across all backends.
- returns
- 0 on success.