Remove some too verbose messages when an error occur and we are not

in verbose mode.
This commit is contained in:
Godzil 2020-04-27 22:39:30 +01:00
parent d692199d07
commit 99ba051b7f

View File

@ -143,7 +143,10 @@ export default function(args: string[], done: (err?: Error) => void)
} }
else if (tasksArr[i].retry <= 0) else if (tasksArr[i].retry <= 0)
{ {
log.error(JSON.stringify(errin)); if (config.verbose)
{
log.error(JSON.stringify(errin));
}
if (config.debug) if (config.debug)
{ {
log.dumpToDebug('BatchGiveUp', JSON.stringify(errin)); log.dumpToDebug('BatchGiveUp', JSON.stringify(errin));