Debug messages for ES uploads should count properly

Previously we would get a debug message

0 of N items uploaded

Because the counter wasn't iterated in the loop. This
just corrects the counter for the debug message.

Change-Id: Id6e3671215475a37af63617741b5e785ae0b0faf
This commit is contained in:
jkilpatr 2017-11-08 08:19:08 -05:00
parent 993f68845d
commit 78d1ec3795
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class Elastic(object):
for item in to_upload:
self.logger.debug("{} of {} Elastic objects uploaded".format(num_items,
counter))
counter = counter + 1
output = "Pushed {} items to Elasticsearch to index {}".format(num_items,
self.index)
output += " and browbeat UUID {}".format(str(browbeat_uuid))