Do not log functions printing startup input
parent
56ee75bc70
commit
5ba96e4be6
|
|
@ -420,7 +420,7 @@ class CLI {
|
|||
const actionYamlReader = new action_yaml_1.ActionYamlReader();
|
||||
for (const element of properties) {
|
||||
program.option(`--${element} <${element}>`, actionYamlReader.GetActionYamlValue(element));
|
||||
if (__1.Input[element] !== undefined && __1.Input[element] !== '') {
|
||||
if (__1.Input[element] !== undefined && __1.Input[element] !== '' && typeof __1.Input[element] !== `function`) {
|
||||
core.info(`${element} ${__1.Input[element]}`);
|
||||
}
|
||||
}
|
||||
|
|
@ -3932,10 +3932,10 @@ class System {
|
|||
if (debug !== '' && shouldDebug) {
|
||||
core.debug(debug);
|
||||
}
|
||||
if (result !== '') {
|
||||
if (result !== '' && shouldDebug) {
|
||||
core.info(result);
|
||||
}
|
||||
if (error !== '') {
|
||||
if (error !== '' && shouldDebug) {
|
||||
core.warning(error);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -37,7 +37,7 @@ export class CLI {
|
|||
const actionYamlReader: ActionYamlReader = new ActionYamlReader();
|
||||
for (const element of properties) {
|
||||
program.option(`--${element} <${element}>`, actionYamlReader.GetActionYamlValue(element));
|
||||
if (Input[element] !== undefined && Input[element] !== '') {
|
||||
if (Input[element] !== undefined && Input[element] !== '' && typeof Input[element] !== `function`) {
|
||||
core.info(`${element} ${Input[element]}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ class System {
|
|||
core.debug(debug);
|
||||
}
|
||||
|
||||
if (result !== '') {
|
||||
if (result !== '' && shouldDebug) {
|
||||
core.info(result);
|
||||
}
|
||||
|
||||
if (error !== '') {
|
||||
if (error !== '' && shouldDebug) {
|
||||
core.warning(error);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue