mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-13 11:35:50 +00:00
Speed up timestamp generation when logging (#9933)
* Speed up timestamp generation when logging * Align to review comments. * Correct a typo
This commit is contained in:
@@ -17,8 +17,7 @@
|
||||
use once_cell::sync::OnceCell;
|
||||
use parking_lot::Mutex;
|
||||
use tracing_subscriber::{
|
||||
filter::Directive, fmt as tracing_fmt, fmt::time::ChronoLocal, layer, reload::Handle,
|
||||
EnvFilter, Registry,
|
||||
filter::Directive, fmt as tracing_fmt, layer, reload::Handle, EnvFilter, Registry,
|
||||
};
|
||||
|
||||
// Handle to reload the tracing log filter
|
||||
@@ -109,6 +108,6 @@ pub(crate) fn set_reload_handle(handle: Handle<EnvFilter, SCSubscriber>) {
|
||||
// Used in the reload `Handle`.
|
||||
type SCSubscriber<
|
||||
N = tracing_fmt::format::DefaultFields,
|
||||
E = crate::logging::EventFormat<ChronoLocal>,
|
||||
E = crate::logging::EventFormat,
|
||||
W = fn() -> std::io::Stderr,
|
||||
> = layer::Layered<tracing_fmt::Layer<Registry, N, E, W>, Registry>;
|
||||
|
||||
Reference in New Issue
Block a user