Require status for 'worker finished' logging
MODIFY
swift/Workflow/Sources/SubtreeManager.swift
swift/Workflow/Sources/SubtreeManager.swift
@@ -424,7 +424,7 @@ extension WorkflowNode.SubtreeManager {
self?.handle(output: output)
case .completed:
- WorkflowLogger.logWorkerFinishedRunning(ref: signpostRef)
+ WorkflowLogger.logWorkerFinishedRunning(ref: signpostRef, status: "Completed")
case .interrupted:
WorkflowLogger.logWorkerFinishedRunning(ref: signpostRef, status: "Interrupted")
case .failed:

MODIFY
swift/Workflow/Sources/WorkflowLogger.swift
swift/Workflow/Sources/WorkflowLogger.swift
@@ -76,14 +76,10 @@ final class WorkflowLogger {
}
}
- static func logWorkerFinishedRunning(ref: AnyObject, status: StaticString? = nil) {
+ static func logWorkerFinishedRunning(ref: AnyObject, status: StaticString) {
if #available(iOS 12.0, macOS 10.14, *) {
let signpostID = OSSignpostID(log: .worker, object: ref)
- if let status = status {
os_signpost(.end, log: .worker, name: "Running", signpostID: signpostID, status)
- } else {
- os_signpost(.end, log: .worker, name: "Running", signpostID: signpostID)
- }
}
}

Require status for 'worker finished' logging