Disable log reloading by default (#9966)

* Disable log reloading by default

This disables the log reloading that was enabled by default. The problem
is that the log reload implementation of `tracing` is using a lock to
make the layer replaceable. This lock needs to be locked every time we
need to check if a particular target is enabled (assuming the log level
is high enough). This kills the performance when for example
`sometarget=trace` logging is enabled.

* 🤦

* Remove unused parameter

* Fix test

* Fix
This commit is contained in:
Bastian Köcher
2021-10-08 13:46:08 +02:00
committed by GitHub
parent 36d25d4994
commit f4b287c7c4
8 changed files with 19 additions and 20 deletions
@@ -99,7 +99,6 @@ fn new_node(tokio_handle: Handle) -> node_cli::service::NewFullBase {
base_path: Some(base_path),
informant_output_format: Default::default(),
wasm_runtime_overrides: None,
disable_log_reloading: false,
};
node_cli::service::new_full_base(config, |_, _| ()).expect("Creates node")