Skip to content

Commit

Permalink
Merge pull request #101 from boesing/bugfix/debug-logging
Browse files Browse the repository at this point in the history
Use `core.isDebug` in combination with `info` for debug logging
  • Loading branch information
boesing authored Jul 3, 2022
2 parents 41f302d + d9e1a3d commit 34f2531
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/action/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export class Github implements Action {
getLogger(): Logger {
return {
debug(message: string): void {
core.debug(message);
if (!core.isDebug()) {
return;
}

core.info(message);
},

info(message: string): void {
Expand Down

0 comments on commit 34f2531

Please sign in to comment.