Skip to content

Commit e73aefb

Browse files
committed
debug logging
1 parent 0f6a64b commit e73aefb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/SWBCore/Extensions/SpecificationsExtension.swift

+6
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,19 @@ extension SpecificationsExtension {
7171
public func specificationSearchPaths(resourceSearchPaths: [Path]) -> [URL] { [] }
7272

7373
public func findResourceBundle(nameWhenInstalledInToolchain: String, resourceSearchPaths: [Path], defaultBundle: Bundle?) -> Bundle? {
74+
print("searching for \(nameWhenInstalledInToolchain)")
7475
for searchPath in resourceSearchPaths {
76+
print("... in \(searchPath.str)")
7577
for bundleBasename in ["\(nameWhenInstalledInToolchain).bundle", "\(nameWhenInstalledInToolchain).resources"] {
78+
print("... path \(searchPath.join(bundleBasename).str)")
7679
if let bundle = Bundle(path: searchPath.join(bundleBasename).str) {
80+
print("found")
7781
return bundle
7882
}
83+
print("not found")
7984
}
8085
}
86+
print("falling back to default accessor")
8187
return defaultBundle
8288
}
8389
}

0 commit comments

Comments
 (0)