@@ -241,7 +241,9 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
241241 }
242242
243243 func commandStatusChanged( _ command: SPMLLBuild . Command , kind: CommandStatusKind ) {
244- guard !self . logLevel. isVerbose else { return }
244+ guard !self . logLevel. isVerbose,
245+ !self . logLevel. isQuiet
246+ else { return }
245247 guard command. shouldShowStatus else { return }
246248 guard !self . swiftParsers. keys. contains ( command. name) else { return }
247249
@@ -285,7 +287,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
285287
286288 self . delegate? . buildSystem ( self . buildSystem, didFinishCommand: BuildSystemCommand ( command) )
287289
288- if !self . logLevel. isVerbose {
290+ if !self . logLevel. isVerbose && ! self . logLevel . isQuiet {
289291 let targetName = self . swiftParsers [ command. name] ? . targetName
290292 self . taskTracker. commandFinished ( command, result: result, targetName: targetName)
291293 self . updateProgress ( )
@@ -395,6 +397,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
395397
396398 /// Invoked right before running an action taken before building.
397399 func preparationStepStarted( _ name: String ) {
400+ guard !self . logLevel. isQuiet else { return }
398401 self . queue. async {
399402 self . taskTracker. buildPreparationStepStarted ( name)
400403 self . updateProgress ( )
@@ -404,6 +407,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
404407 /// Invoked when an action taken before building emits output.
405408 /// when verboseOnly is set to true, the output will only be printed in verbose logging mode
406409 func preparationStepHadOutput( _ name: String , output: String , verboseOnly: Bool ) {
410+ guard !logLevel. isQuiet else { return }
407411 self . queue. async {
408412 self . progressAnimation. clear ( )
409413 if !verboseOnly || self . logLevel. isVerbose {
@@ -416,6 +420,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
416420 /// Invoked right after running an action taken before building. The result
417421 /// indicates whether the action succeeded, failed, or was cancelled.
418422 func preparationStepFinished( _ name: String , result: CommandResult ) {
423+ guard !self . logLevel. isQuiet else { return }
419424 self . queue. async {
420425 self . taskTracker. buildPreparationStepFinished ( name)
421426 self . updateProgress ( )
@@ -431,7 +436,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
431436 self . outputStream. send ( " \( text) \n " )
432437 self . outputStream. flush ( )
433438 }
434- } else {
439+ } else if ! self . logLevel . isQuiet {
435440 self . taskTracker. swiftCompilerDidOutputMessage ( message, targetName: parser. targetName)
436441 self . updateProgress ( )
437442 }
@@ -466,6 +471,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
466471 }
467472
468473 func buildStart( configuration: BuildConfiguration ) {
474+ guard !logLevel. isQuiet else { return }
469475 self . queue. sync {
470476 self . progressAnimation. clear ( )
471477 self . outputStream. send ( " Building for \( configuration == . debug ? " debugging " : " production " ) ... \n " )
@@ -484,7 +490,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
484490 self . progressAnimation. complete ( success: success)
485491 self . delegate? . buildSystem ( self . buildSystem, didFinishWithResult: success)
486492
487- if success {
493+ if ! self . logLevel . isQuiet , success {
488494 let message = self . cancelled ? " Build \( subsetString) cancelled! " : " Build \( subsetString) complete! "
489495 self . progressAnimation. clear ( )
490496 self . outputStream. send ( " \( message) ( \( duration. descriptionInSeconds) ) \n " )
0 commit comments