File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11#![ doc = include_str ! ( "../README.md" ) ]
22
33use clap:: Parser ;
4- use mithril_aggregator:: { CommandType , MainOpts } ;
5- use mithril_common:: StdResult ;
64use slog:: { Drain , Fuse , Level , Logger } ;
75use slog_async:: Async ;
86use std:: sync:: Arc ;
97
8+ use mithril_aggregator:: { CommandType , MainOpts } ;
9+ use mithril_common:: StdResult ;
10+
1011fn build_io_logger < W : std:: io:: Write + Send + ' static > ( log_level : Level , io : W ) -> Fuse < Async > {
11- let drain = slog_bunyan:: new ( io) . set_pretty ( false ) . build ( ) . fuse ( ) ;
12+ let drain = slog_bunyan:: with_name ( "mithril-aggregator" , io)
13+ . set_pretty ( false )
14+ . build ( )
15+ . fuse ( ) ;
1216 let drain = slog:: LevelFilter :: new ( drain, log_level) . fuse ( ) ;
1317
14- slog_async :: Async :: new ( drain) . build ( ) . fuse ( )
18+ Async :: new ( drain) . build ( ) . fuse ( )
1519}
1620
1721/// Build a logger from args.
You can’t perform that action at this time.
0 commit comments