Skip to content

Commit

Permalink
chore: only log in DRY_RUN or debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Sep 20, 2023
1 parent a6f7e2c commit d76ed2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ if (!PACKAGE_NAME) {
}

function debug(message: string) {
console.debug(message);
if (DRY_RUN || core.isDebug()) {
console.log(message);
}
}

async function main() {
Expand Down

0 comments on commit d76ed2c

Please sign in to comment.