Skip to content

Commit b56ab5d

Browse files
committed
Remove extra logging.
1 parent 81f49c9 commit b56ab5d

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Sources/SwiftDocCUtilities/ArgumentParsing/Subcommands/DiffDocCArchive.swift

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,13 @@ extension Docc.ProcessArchive {
9898
let initialDocCArchiveAPIs: [URL] = try findAllSymbolLinks(initialPath: initialDocCArchivePath)
9999
let newDocCArchiveAPIs: [URL] = try findAllSymbolLinks(initialPath: newerDocCArchivePath)
100100

101-
print("\nInitial DocC Archive: ")
102-
printAllSymbols(symbols: initialDocCArchiveAPIs)
103-
104-
print("\nNew DocC Archive: ")
105-
printAllSymbols(symbols: newDocCArchiveAPIs)
106-
107101
let initialSet = Set(initialDocCArchiveAPIs.map { $0 })
108102
let newSet = Set(newDocCArchiveAPIs.map { $0 })
109103

110104
// Compute additions and removals to both sets
111105
let additionsToNewSet = newSet.subtracting(initialSet)
112106
let removedFromOldSet = initialSet.subtracting(newSet)
113107

114-
print("\nAdditions to New DocC Archive:")
115-
printAllSymbols(symbols: Array(additionsToNewSet))
116-
print("\nRemovals from Initial DocC Archive:")
117-
printAllSymbols(symbols: Array(removedFromOldSet))
118-
119108
// Map identifier urls in differences to external urls
120109
let additionsExternalURLs = Set(additionsToNewSet.map { findExternalLink(identifierURL: $0) })
121110
let removalsExternalURLs = Set(removedFromOldSet.map { findExternalLink(identifierURL: $0) })
@@ -145,7 +134,9 @@ extension Docc.ProcessArchive {
145134
for fileNameAndContent in Docc.ProcessArchive.DiffDocCArchive.changeLogTemplateFileContent(frameworkName: frameworkName, initialDocCArchiveVersion: initialDocCArchiveVersion, newerDocCArchiveVersion: newerDocCArchiveVersion, additionLinks: additionLinks, removalLinks: removalLinks) {
146135
let fileName = fileNameAndContent.key
147136
let content = fileNameAndContent.value
148-
try FileManager.default.createFile(at: initialDocCArchivePath.deletingLastPathComponent().appendingPathComponent(fileName), contents: Data(content.utf8))
137+
let filePath = initialDocCArchivePath.deletingLastPathComponent().appendingPathComponent(fileName)
138+
try FileManager.default.createFile(at: filePath, contents: Data(content.utf8))
139+
print("\nOutput file path: \(filePath)")
149140
}
150141
}
151142

0 commit comments

Comments
 (0)