zephyr/subsys/logging
Marti Bolivar 55327a183d logging: fix runtime filtering initialization
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>
2018-08-02 19:18:05 +02:00
..
CMakeLists.txt logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
event_logger.c kernel: Fix sloppy wait queue API 2018-05-18 01:48:48 +03:00
Kconfig logging: Internal processing thread enabled by default 2018-07-19 09:50:18 -04:00
kernel_event_logger.c kernel_event_logger: Ignore events before subsystem init 2018-03-18 16:58:12 -04:00
log_backend_uart.c logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
log_core.c logging: fix runtime filtering initialization 2018-08-02 19:18:05 +02:00
log_list.c logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
log_list.h logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
log_msg.c logging: Add log initialization to system startup 2018-07-14 08:32:44 -04:00
log_output.c logging: Make prefixes the same length 2018-07-19 16:23:19 -04:00
sys_log_net.c syslog: net: Fix multiple network interface selection for IPv4 2018-04-13 08:29:44 -04:00
sys_log.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00