Speed up logging once again (#9981)

* Update `tracing`-related dependencies

* Enable `parking_lot` feature in `tracing-subscriber`

* Add an asynchronous stderr logger

* Make clippy happy

* Add an integration test for the logger

* Refactor `test_logger_filters`'s subprocess machinery into a separate function

* Use a child process instead of hooking into stderr for the test

* Add a doc comment for `MakeStderrWriter`

* Move the initialization into the `MakeStderrWriter`'s constructor

* Add an extra test case to trigger the logger's emergency flush mechanism

* Use the buffer's mutex for asynchronous flushes

* Remove vestigial `nix` dependency from one of the previous commits
This commit is contained in:
Koute
2021-10-22 01:54:15 +09:00
committed by GitHub
parent 6334692e9c
commit 3d5f093ddb
6 changed files with 373 additions and 21 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ codec = { version = "2.0.0", package = "parity-scale-codec", default-features =
"derive",
] }
tracing = { version = "0.1.29", default-features = false }
tracing-core = { version = "0.1.17", default-features = false }
tracing-subscriber = { version = "0.2.19", optional = true, features = [
tracing-core = { version = "0.1.21", default-features = false }
tracing-subscriber = { version = "0.2.25", optional = true, features = [
"tracing-log",
] }