Browse Source

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

Godzil 4 years ago
parent
commit
99ba051b7f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/batch.ts

+ 4 - 1
src/batch.ts

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