Commit 98e2b24
authored
fix: Enable lowering log level below startup value (#15)
`Logger::parse_filters` allows to change the log filter even after the
logger has been initialized. However, it was not possible to see logs
which were above the level set at startup. E.g. if the logger was
initialized with `debug`, setting it to `trace` at runtime did not work
since the filter of the global logging facade filtered out the `trace`
logs.
This commit fixes the issue by calling `log::set_max_level` with the
level from the updated log filter.
Co-authored-by: Simon B. Gasse <[email protected]>1 parent ef0f54a commit 98e2b24
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
0 commit comments