@@ -319,7 +319,12 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
319
319
self . observabilityScope. emit ( . multipleProducers( output: output, commands: commands) )
320
320
}
321
321
322
- func commandProcessStarted( _ command: SPMLLBuild . Command , process: ProcessHandle ) { }
322
+ func commandProcessStarted( _ command: SPMLLBuild . Command , process: ProcessHandle ) {
323
+ self . queue. async {
324
+ self . outputStream. send ( " EXTRA VERBOSE COMMAND STARTED \( process. hashValue) for \( command. verboseDescription) " )
325
+ self . outputStream. flush ( )
326
+ }
327
+ }
323
328
324
329
func commandProcessHadError( _ command: SPMLLBuild . Command , process: ProcessHandle , message: String ) {
325
330
self . observabilityScope. emit ( . commandError( command: command, message: message) )
@@ -343,11 +348,11 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
343
348
result: CommandExtendedResult
344
349
) {
345
350
// FIXME: This should really happen at the command-level and is just a stopgap measure.
346
- let shouldFilterOutput = !self . logLevel. isVerbose && command. verboseDescription. hasPrefix ( " codesign " ) && result
347
- . result != . failed
351
+ let shouldFilterOutput = !self . logLevel. isVerbose
348
352
self . queue. async {
349
353
if let buffer = self . nonSwiftMessageBuffers [ command. name] , !shouldFilterOutput {
350
354
self . progressAnimation. clear ( )
355
+ self . outputStream. send ( " EXTRA VERBOSE COMMAND FINISHED \( process. hashValue) \( result. exitStatus) for \( command. verboseDescription) with " )
351
356
self . outputStream. send ( buffer)
352
357
self . outputStream. flush ( )
353
358
self . nonSwiftMessageBuffers [ command. name] = nil
@@ -628,8 +633,15 @@ extension SwiftCompilerMessage {
628
633
fileprivate var verboseProgressText : String ? {
629
634
switch kind {
630
635
case . began( let info) :
631
- ( [ info. commandExecutable] + info. commandArguments) . joined ( separator: " " )
632
- case . skipped, . finished, . abnormal, . signalled, . unparsableOutput:
636
+ " EXTRA VERBOSE STARTED \( info. pid) : \( ( [ info. commandExecutable] + info. commandArguments) . joined ( separator: " " ) ) "
637
+ case . finished( let info) :
638
+ " EXTRA VERBOSE FINISHED \( info. pid) with \( info. output ?? " no output " ) "
639
+ case . abnormal( let info) ,
640
+ . signalled( let info) :
641
+ " EXTRA VERBOSE FAILED \( info. pid) with \( info. output ?? " no output " ) "
642
+ case . unparsableOutput( let output) :
643
+ " EXTRA VERBOSE UNPARSABLE with \( output) "
644
+ case . skipped:
633
645
nil
634
646
}
635
647
}
0 commit comments