File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -186,17 +186,21 @@ fn main() -> anyhow::Result<()> {
186
186
qltest:: prepare ( & mut cfg) ?;
187
187
}
188
188
let start = Instant :: now ( ) ;
189
- let flame_layer = if let Some ( path) = & cfg. flame_log {
190
- tracing_flame:: FlameLayer :: with_file ( path) . ok ( )
189
+ let ( flame_layer, _flush_guard) = if let Some ( path) = & cfg. flame_log {
190
+ tracing_flame:: FlameLayer :: with_file ( path)
191
+ . ok ( )
192
+ . map ( |( a, b) | ( Some ( a) , Some ( b) ) )
193
+ . unwrap_or ( ( None , None ) )
191
194
} else {
192
- None
195
+ ( None , None )
193
196
} ;
197
+
194
198
tracing_subscriber:: registry ( )
195
199
. with ( codeql_extractor:: extractor:: default_subscriber_with_level (
196
200
"single_arch" ,
197
201
& cfg. verbosity ,
198
202
) )
199
- . with ( flame_layer. map ( |x| x . 0 ) )
203
+ . with ( flame_layer)
200
204
. init ( ) ;
201
205
info ! ( "{cfg:#?}\n " ) ;
202
206
@@ -247,6 +251,5 @@ fn main() -> anyhow::Result<()> {
247
251
}
248
252
}
249
253
}
250
-
251
254
extractor. emit_extraction_diagnostics ( start, & cfg)
252
255
}
You can’t perform that action at this time.
0 commit comments