mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 21:02:56 +00:00
The runtime filters (both aggregated and per-backend) are all getting initialized to the default level CONFIG_LOG_DEFAULT_LEVEL. This is not correct behavior: the initial runtime setting for each source ID should match its compile-time level setting. Otherwise, setting CONFIG_LOG_RUNTIME_FILTERING=y changes the logging behavior for messages that pass the compile time filter check, but not the runtime check (this currently happens when LOG_LEVEL=4, since CONFIG_LOG_DEFAULT_LEVEL=3). Fix this by initializing all filters to their module's compile time settings. Also make sure that filters are set up before backends are activated, to avoid race conditions. Fix a stray documentation typo while we are here. Signed-off-by: Marti Bolivar <marti@foundries.io> |
||
---|---|---|
.. | ||
bluetooth | ||
logging | ||
networking | ||
nvs | ||
settings | ||
test | ||
usb | ||
c_library.rst | ||
dfu.rst | ||
mgmt.rst | ||
power_management.rst | ||
sensor.rst | ||
shell.rst | ||
subsystems.rst |