@@ -241,7 +241,9 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
241
241
}
242
242
243
243
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 }
245
247
guard command. shouldShowStatus else { return }
246
248
guard !self . swiftParsers. keys. contains ( command. name) else { return }
247
249
@@ -285,7 +287,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
285
287
286
288
self . delegate? . buildSystem ( self . buildSystem, didFinishCommand: BuildSystemCommand ( command) )
287
289
288
- if !self . logLevel. isVerbose {
290
+ if !self . logLevel. isVerbose && ! self . logLevel . isQuiet {
289
291
let targetName = self . swiftParsers [ command. name] ? . targetName
290
292
self . taskTracker. commandFinished ( command, result: result, targetName: targetName)
291
293
self . updateProgress ( )
@@ -395,6 +397,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
395
397
396
398
/// Invoked right before running an action taken before building.
397
399
func preparationStepStarted( _ name: String ) {
400
+ guard !self . logLevel. isQuiet else { return }
398
401
self . queue. async {
399
402
self . taskTracker. buildPreparationStepStarted ( name)
400
403
self . updateProgress ( )
@@ -404,6 +407,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
404
407
/// Invoked when an action taken before building emits output.
405
408
/// when verboseOnly is set to true, the output will only be printed in verbose logging mode
406
409
func preparationStepHadOutput( _ name: String , output: String , verboseOnly: Bool ) {
410
+ guard !logLevel. isQuiet else { return }
407
411
self . queue. async {
408
412
self . progressAnimation. clear ( )
409
413
if !verboseOnly || self . logLevel. isVerbose {
@@ -416,6 +420,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
416
420
/// Invoked right after running an action taken before building. The result
417
421
/// indicates whether the action succeeded, failed, or was cancelled.
418
422
func preparationStepFinished( _ name: String , result: CommandResult ) {
423
+ guard !self . logLevel. isQuiet else { return }
419
424
self . queue. async {
420
425
self . taskTracker. buildPreparationStepFinished ( name)
421
426
self . updateProgress ( )
@@ -431,7 +436,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
431
436
self . outputStream. send ( " \( text) \n " )
432
437
self . outputStream. flush ( )
433
438
}
434
- } else {
439
+ } else if ! self . logLevel . isQuiet {
435
440
self . taskTracker. swiftCompilerDidOutputMessage ( message, targetName: parser. targetName)
436
441
self . updateProgress ( )
437
442
}
@@ -466,6 +471,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
466
471
}
467
472
468
473
func buildStart( configuration: BuildConfiguration ) {
474
+ guard !logLevel. isQuiet else { return }
469
475
self . queue. sync {
470
476
self . progressAnimation. clear ( )
471
477
self . outputStream. send ( " Building for \( configuration == . debug ? " debugging " : " production " ) ... \n " )
@@ -484,7 +490,7 @@ final class LLBuildProgressTracker: LLBuildBuildSystemDelegate, SwiftCompilerOut
484
490
self . progressAnimation. complete ( success: success)
485
491
self . delegate? . buildSystem ( self . buildSystem, didFinishWithResult: success)
486
492
487
- if success {
493
+ if ! self . logLevel . isQuiet , success {
488
494
let message = self . cancelled ? " Build \( subsetString) cancelled! " : " Build \( subsetString) complete! "
489
495
self . progressAnimation. clear ( )
490
496
self . outputStream. send ( " \( message) ( \( duration. descriptionInSeconds) ) \n " )
0 commit comments