File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -681,16 +681,16 @@ impl ExecutionContext {
681
681
) -> DeferredCommand < ' a > {
682
682
let fingerprint = command. fingerprint ( ) ;
683
683
684
- #[ cfg( feature = "tracing" ) ]
685
- let span_guard = crate :: utils:: tracing:: trace_cmd ( command) ;
686
-
687
684
if let Some ( cached_output) = self . command_cache . get ( & fingerprint) {
688
685
command. mark_as_executed ( ) ;
689
686
self . verbose ( || println ! ( "Cache hit: {command:?}" ) ) ;
690
687
self . profiler . record_cache_hit ( fingerprint) ;
691
688
return DeferredCommand { state : CommandState :: Cached ( cached_output) } ;
692
689
}
693
690
691
+ #[ cfg( feature = "tracing" ) ]
692
+ let span_guard = crate :: utils:: tracing:: trace_cmd ( command) ;
693
+
694
694
let created_at = command. get_created_location ( ) ;
695
695
let executed_at = std:: panic:: Location :: caller ( ) ;
696
696
You can’t perform that action at this time.
0 commit comments