Skip to content

Commit 66b7a55

Browse files
committed
debug output
1 parent 8bedc5d commit 66b7a55

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Sources/PublicModules/PADPackageFileAnalyzer/SwiftPackageFileAnalyzer+Targets.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ private extension SwiftPackageFileAnalyzer {
144144
newProjectBasePath: String
145145
) throws -> [String] {
146146

147-
logger?.log("Old project base path \(oldProjectBasePath)", from: String(describing: Self.self))
148-
logger?.log("New project base path \(newProjectBasePath)", from: String(describing: Self.self))
149-
150147
let oldResourcePaths = Set(oldResources.map(\.path).map { $0.trimmingPrefix(oldProjectBasePath) })
151148
let newResourcePaths = Set(newResources.map(\.path).map { $0.trimmingPrefix(newProjectBasePath) })
152149

@@ -176,6 +173,10 @@ private extension SwiftPackageFileAnalyzer {
176173
return "Removed resource \(resource.description)"
177174
}
178175

176+
// TODO: Remove this again!
177+
listOfChanges += ["[DEBUG] Old project base path \(oldProjectBasePath)"]
178+
listOfChanges += ["[DEBUG] New project base path \(newProjectBasePath)"]
179+
179180
return listOfChanges
180181
}
181182
}

Sources/PublicModules/PADProjectBuilder/SwiftInterfaceProducer/XcodeTools.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct XcodeTools {
8888
let result = shell.execute(command)
8989
let derivedDataPath = "\(projectDirectoryPath)/\(Constants.derivedDataPath)"
9090

91-
//logger?.debug(result, from: String(describing: Self.self))
91+
logger?.debug(result, from: String(describing: Self.self))
9292

9393
// It might be that the archive failed but the .swiftinterface files are still created
9494
// so we have to check outside if they exist.

Tests/UnitTests/XcodeToolsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private extension XcodeToolsTests {
101101
("📦 Archiving SCHEME from PROJECT_DIRECTORY_PATH", "XcodeTools")
102102
]
103103
var expectedHandleDebugCalls: [(message: String, subsystem: String)] = [
104-
//(archiveResult, "XcodeTools")
104+
(archiveResult, "XcodeTools")
105105
]
106106
var expectedHandleFileExistsCalls = ["PROJECT_DIRECTORY_PATH/.build"]
107107

0 commit comments

Comments
 (0)