Skip to content

Commit dcead94

Browse files
committed
Emit "Found unhandled resource" to observability scope
Libraries should never call print. Emit this diagnostic message to the observability scope instead.
1 parent 339afc8 commit dcead94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageLoading/TargetSourcesBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public struct TargetSourcesBuilder {
191191
if handledResources.contains(resource.path) {
192192
return nil
193193
} else {
194-
print("Found unhandled resource at \(resource.path)")
194+
self.observabilityScope.emit(info: "Found unhandled resource at \(resource.path)")
195195
return self.resource(for: resource.path, with: .init(resource.rule))
196196
}
197197
}

0 commit comments

Comments
 (0)