openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
Loading...
Searching...
No Matches
woz_logquiet.c File Reference

— PRETTY-gated runtime muting of benign upstream error spam. More...

#include <zephyr/init.h>
#include <zephyr/logging/log.h>
#include <zephyr/logging/log_ctrl.h>
Include dependency graph for woz_logquiet.c:

Functions

static int woz_logquiet_init (void)
 One-shot init that mutes specified log sources by setting their filter to LOG_LEVEL_NONE across all backends.
 

Detailed Description

— 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).

Function Documentation

◆ woz_logquiet_init()

static int woz_logquiet_init ( void  )
static

One-shot init that mutes specified log sources by setting their filter to LOG_LEVEL_NONE across all backends.

Returns
0 on success.