@@ -101,7 +101,7 @@ pub mod pretty {
101
101
enable : bool ,
102
102
reverse_lines : bool ,
103
103
progress : & gix:: progress:: prodash:: tree:: Root ,
104
- ) -> anyhow:: Result < tracing :: subscriber :: DefaultGuard > {
104
+ ) -> anyhow:: Result < ( ) > {
105
105
Ok ( if enable {
106
106
let processor = tracing_forest:: Printer :: new ( ) . formatter ( {
107
107
let progress = std:: sync:: Mutex :: new ( progress. add_child ( "tracing" ) ) ;
@@ -124,9 +124,9 @@ pub mod pretty {
124
124
} ) ;
125
125
use tracing_subscriber:: layer:: SubscriberExt ;
126
126
let subscriber = tracing_subscriber:: Registry :: default ( ) . with ( tracing_forest:: ForestLayer :: from ( processor) ) ;
127
- tracing:: subscriber:: set_default ( subscriber)
127
+ tracing:: subscriber:: set_global_default ( subscriber) ? ;
128
128
} else {
129
- tracing:: subscriber:: set_default ( tracing_subscriber:: Registry :: default ( ) )
129
+ tracing:: subscriber:: set_global_default ( tracing_subscriber:: Registry :: default ( ) ) ? ;
130
130
} )
131
131
}
132
132
@@ -158,7 +158,7 @@ pub mod pretty {
158
158
use crate :: shared:: { self , STANDARD_RANGE } ;
159
159
let progress = shared:: progress_tree ( ) ;
160
160
let sub_progress = progress. add_child ( name) ;
161
- let _trace = init_tracing ( trace, false , & progress) ?;
161
+ init_tracing ( trace, false , & progress) ?;
162
162
163
163
let handle = shared:: setup_line_renderer_range ( & progress, range. into ( ) . unwrap_or ( STANDARD_RANGE ) ) ;
164
164
0 commit comments