You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is with Zephyr 3.2. I see some weird behavior while trying to selectively enable logging for 2 different backends (see below). The module used is a custom module called "logs_module" in my project. I am using Log shell for the below experiments.
log backend shell_uart_backend disable logs_module
log backend shell_uart_backend enable dbg logs_module
The above shell commands are for enabling and disabling logs_module print only for uart_shell. After executing the disable command, I don't see any messages from logs_module in the shell_uart (which is what is expected). However, I don't see any messages even in the fs backend too (which is not expected). When enabled it is being seen in both the backends
log backend log_backend_fs disable logs_module
log backend log_backend_fs enable dbg logs_module
This is the same command for fs backend. This doesn't seem to have any effect. The messages are seen in both the backends, even after executing the "disable" command.
I can confirm similar behavior while using log_filter_set in the code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is with Zephyr 3.2. I see some weird behavior while trying to selectively enable logging for 2 different backends (see below). The module used is a custom module called "logs_module" in my project. I am using Log shell for the below experiments.
log backend shell_uart_backend disable logs_module
log backend shell_uart_backend enable dbg logs_module
The above shell commands are for enabling and disabling logs_module print only for uart_shell. After executing the disable command, I don't see any messages from logs_module in the shell_uart (which is what is expected). However, I don't see any messages even in the fs backend too (which is not expected). When enabled it is being seen in both the backends
log backend log_backend_fs disable logs_module
log backend log_backend_fs enable dbg logs_module
This is the same command for fs backend. This doesn't seem to have any effect. The messages are seen in both the backends, even after executing the "disable" command.
I can confirm similar behavior while using log_filter_set in the code.
Beta Was this translation helpful? Give feedback.
All reactions