Skip to content

Commit ed11d42

Browse files
committed
Print diagnostics
1 parent 8bb74aa commit ed11d42

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/SPMTestSupport/Observability.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ extension ObservabilitySystem {
2222
}
2323

2424
public static var NOOP: ObservabilityScope {
25-
ObservabilitySystem({ _, _ in }).topScope
25+
ObservabilitySystem({ _, diagnostic in
26+
switch diagnostic.severity {
27+
case .warning, .error:
28+
print("\(diagnostic)")
29+
default:
30+
break
31+
}
32+
}).topScope
2633
}
2734
}
2835

0 commit comments

Comments
 (0)