Skip to content

Commit ab11e91

Browse files
committed
debug logging
1 parent 915d67b commit ab11e91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/SwiftBuildSupport/SwiftBuildSystem.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ public final class SwiftBuildSystem: SPMBuildCore.BuildSystem {
532532
let startedInfo = try buildState.completed(task: info)
533533
if info.result != .success {
534534
self.observabilityScope.emit(severity: .error, message: "\(startedInfo.ruleInfo) failed with a nonzero exit code. Command line: \(startedInfo.commandLineDisplayString ?? "<no command line>")")
535+
} else {
536+
self.observabilityScope.emit(severity: .info, message: "\(startedInfo.ruleInfo) - Command line: \(startedInfo.commandLineDisplayString ?? "<no command line>")")
535537
}
536538
let targetInfo = try buildState.target(for: startedInfo)
537539
self.delegate?.buildSystem(self, didFinishCommand: BuildSystemCommand(startedInfo, targetInfo: targetInfo))
@@ -546,8 +548,10 @@ public final class SwiftBuildSystem: SPMBuildCore.BuildSystem {
546548
break
547549
case .buildDiagnostic, .targetDiagnostic, .taskDiagnostic:
548550
break // deprecated
549-
case .buildOutput, .targetOutput, .taskOutput:
551+
case .buildOutput, .targetOutput:
550552
break // deprecated
553+
case .taskOutput(let info):
554+
self.observabilityScope.emit(severity: .info, message: info.data)
551555
@unknown default:
552556
break
553557
}

0 commit comments

Comments
 (0)