File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ use bootstrap::{
1616} ;
1717use build_helper:: ci:: CiEnv ;
1818#[ cfg( feature = "tracing" ) ]
19- use tracing:: * ;
20- #[ cfg( feature = "tracing" ) ]
21- use tracing_subscriber:: EnvFilter ;
22- #[ cfg( feature = "tracing" ) ]
23- use tracing_subscriber:: prelude:: * ;
19+ use tracing:: { instrument, trace} ;
2420
2521#[ cfg_attr( feature = "tracing" , instrument( level = "trace" , name = "main" ) ) ]
2622fn main ( ) {
@@ -211,6 +207,9 @@ fn check_version(config: &Config) -> Option<String> {
211207// "tracing", instrument(..))]`.
212208#[ cfg( feature = "tracing" ) ]
213209fn setup_tracing ( ) {
210+ use tracing_subscriber:: EnvFilter ;
211+ use tracing_subscriber:: layer:: SubscriberExt ;
212+
214213 let filter = EnvFilter :: from_env ( "BOOTSTRAP_TRACING" ) ;
215214 let layer = tracing_tree:: HierarchicalLayer :: default ( )
216215 . with_writer ( std:: io:: stderr)
You can’t perform that action at this time.
0 commit comments