File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ use bootstrap::{
16
16
} ;
17
17
use build_helper:: ci:: CiEnv ;
18
18
#[ 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} ;
24
20
25
21
#[ cfg_attr( feature = "tracing" , instrument( level = "trace" , name = "main" ) ) ]
26
22
fn main ( ) {
@@ -211,6 +207,9 @@ fn check_version(config: &Config) -> Option<String> {
211
207
// "tracing", instrument(..))]`.
212
208
#[ cfg( feature = "tracing" ) ]
213
209
fn setup_tracing ( ) {
210
+ use tracing_subscriber:: EnvFilter ;
211
+ use tracing_subscriber:: layer:: SubscriberExt ;
212
+
214
213
let filter = EnvFilter :: from_env ( "BOOTSTRAP_TRACING" ) ;
215
214
let layer = tracing_tree:: HierarchicalLayer :: default ( )
216
215
. with_writer ( std:: io:: stderr)
You can’t perform that action at this time.
0 commit comments