Skip to content

Commit

Permalink
Replace print statement with CodegenLogger.log
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltonc committed Jun 29, 2022
1 parent 402dd16 commit 4e56581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ApolloCodegenLib/CLIExtractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ struct CLIExtractor {
/// - Parameter expected: The expected SHASUM. Defaults to the real expected SHASUM. This parameter exists mostly for testing.
static func validateZipFileSHASUM(at zipFileURL: URL, expected: String = CLIExtractor.expectedSHASUM) throws {
let shasum = try FileManager.default.apollo.shasum(at: zipFileURL)
print("SHASUM of downloaded file: \(shasum)")
CodegenLogger.log("SHASUM of downloaded file: \(shasum)")
guard shasum == expected else {
throw CLIExtractorError.zipFileHasInvalidSHASUM(expectedSHASUM: expected, gotSHASUM: shasum)
}
Expand Down

0 comments on commit 4e56581

Please sign in to comment.