Commit 6843edb
committed
logging: fix mtrace backend activation on IPC log enable
This patch addresses an issue where logs were not being collected after
an IPC message when the mtrace autostart was disabled in regular builds.
The problem was resolved by replacing `log_backend_activate` and
`log_backend_deactivate` with `log_backend_enable` and
`log_backend_disable`, respectively. These functions ensure that the
backend is properly enabled with the initial maximum filtering level and
disabled when necessary. This change ensures that logging behavior
aligns with the intended configuration, allowing logs to be collected as
expected after an IPC message.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 2e5088c commit 6843edb
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
| 138 | + | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
153 | | - | |
| 152 | + | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
0 commit comments