mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
Migrate rpc-servers, serializer, service and sr-io to the 2018 edition (#1732)
This commit is contained in:
committed by
Bastian Köcher
parent
91114c6c11
commit
31188dc013
@@ -27,6 +27,7 @@ use parking_lot::Mutex;
|
||||
use slog::{Drain, o};
|
||||
use log::trace;
|
||||
pub use slog_scope::with_logger;
|
||||
pub use slog;
|
||||
|
||||
/// Configuration for telemetry.
|
||||
pub struct TelemetryConfig {
|
||||
@@ -70,7 +71,7 @@ pub fn init_telemetry(config: TelemetryConfig) -> slog_scope::GlobalLoggerGuard
|
||||
/// Exactly equivalent to `slog_scope::info`, provided as a convenience.
|
||||
#[macro_export]
|
||||
macro_rules! telemetry {
|
||||
( $($t:tt)* ) => { $crate::with_logger(|l| slog_info!(l, $($t)* )) }
|
||||
( $($t:tt)* ) => { $crate::with_logger(|l| $crate::slog::slog_info!(l, $($t)* )) }
|
||||
}
|
||||
|
||||
struct Connection<'a> {
|
||||
|
||||
Reference in New Issue
Block a user