File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -211,15 +211,10 @@ fn setup_tracing() {
211211 use tracing_subscriber:: layer:: SubscriberExt ;
212212
213213 let filter = EnvFilter :: from_env ( "BOOTSTRAP_TRACING" ) ;
214- let layer = tracing_tree:: HierarchicalLayer :: default ( )
215- . with_writer ( std:: io:: stderr)
216- . with_ansi ( true )
217- . with_targets ( true )
218- . with_bracketed_fields ( true )
219- . with_indent_amount ( 2 )
220- . with_indent_lines ( true ) ;
221- let subscriber = tracing_subscriber:: registry ( ) . with ( filter) . with ( layer) ;
222-
223- tracing:: subscriber:: set_global_default ( subscriber) . unwrap ( ) ;
224- trace ! ( "tracing subscriber setup" ) ;
214+ // cf. <https://docs.rs/tracing-tree/latest/tracing_tree/struct.HierarchicalLayer.html>.
215+ let layer = tracing_tree:: HierarchicalLayer :: default ( ) . with_targets ( true ) . with_indent_amount ( 2 ) ;
216+
217+ let registry = tracing_subscriber:: registry ( ) . with ( filter) . with ( layer) ;
218+
219+ tracing:: subscriber:: set_global_default ( registry) . unwrap ( ) ;
225220}
You can’t perform that action at this time.
0 commit comments