Skip to content

Commit

Permalink
fix: ensure quiet mode still reports successful generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinEberhardt committed Mar 31, 2023
1 parent 7a50587 commit e274516
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function isVerbose() {
}

function error(msg) {
console.log(msg);
console.log(`${redBackground}${blackForeground}ERROR:${resetStyling} ${msg}`);
}

function standard(msg) {
Expand Down Expand Up @@ -115,6 +115,9 @@ function logSuccessfulForge(
` ${brightCyanForeground}${numberOfDiscoveredEndpoints}${resetStyling} endpoints have been cast`
);
standard(`${divider}`);
if (isQuiet()) {
console.log("API generation SUCCESSFUL");
}
return;
}

Expand Down

0 comments on commit e274516

Please sign in to comment.