add debug mode to limit output

This commit is contained in:
Robert Brignull 2020-08-27 14:26:44 +01:00
parent f80d660e33
commit 6f422a4303
18 changed files with 86 additions and 69 deletions

View file

@ -14,9 +14,9 @@ export function getActionsLogger(): Logger {
return core;
}
export function getRunnerLogger(): Logger {
export function getRunnerLogger(debugMode: boolean): Logger {
return {
debug: console.debug,
debug: debugMode ? console.debug : () => undefined,
info: console.info,
warning: console.warn,
error: console.error,