Merge pull request #2060 from AlanCoding/one_less_counter

Get rid of duplicate counter variable
This commit is contained in:
Alan Rominger
2018-06-20 09:46:03 -04:00
committed by GitHub
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -1024,7 +1024,7 @@ class BaseTask(Task):
if stdout_handle:
stdout_handle.flush()
stdout_handle.close()
event_ct = getattr(stdout_handle, '_event_ct', 0)
event_ct = getattr(stdout_handle, '_counter', 0)
logger.info('%s finished running, producing %s events.',
instance.log_format, event_ct)
except Exception: