Skip to content

Commit

Permalink
eng - only log SHA256 if verbose (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored Aug 28, 2024
1 parent d821504 commit 759e211
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/builds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ class Builds {
if (expectedSHA256 !== computedSHA256) {
throw new Error(`SHA256 hash of downloaded file does not match the expected hash. Expected: ${expectedSHA256}, Got: ${computedSHA256}`);
} else {
console.log(`${chalk.gray('[build]')} Expected SHA256 checksum matches downloaded build ${chalk.green('✔︎')}`);
if (LOGGER.verbose) {
console.log(`${chalk.gray('[build]')} expected SHA256 checksum matches with download ${chalk.green('✔︎')}`);
}
}

// Unzip
Expand Down

0 comments on commit 759e211

Please sign in to comment.