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

4
lib/logging.js generated
View file

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