Set max log level when changing the log directives via RPC (#8721)
Before this pr changing the log directives would not change the max log level. This means that if the node was started with `info` logging and some `trace` logging was enabled, this `trace` wouldn't be logged. To fix this we also need to update the max log level. This max log level is used by the log macros to early return.
Showing
- substrate/client/rpc/src/system/tests.rs 25 additions, 31 deletionssubstrate/client/rpc/src/system/tests.rs
- substrate/client/tracing/src/logging/directives.rs 6 additions, 5 deletionssubstrate/client/tracing/src/logging/directives.rs
- substrate/client/tracing/src/logging/mod.rs 15 additions, 9 deletionssubstrate/client/tracing/src/logging/mod.rs
Please register or sign in to comment