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:
parent
993f68845d
commit
78d1ec3795
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user