Permalink
Browse files

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
  • Loading branch information...
jkilpatr
jkilpatr committed Nov 8, 2017
1 parent 993f688 commit 78d1ec3795e84c1090f157456e89b54dd75e8ccd
Showing with 1 addition and 0 deletions.
  1. +1 −0 browbeat/elastic.py
View
@@ -109,6 +109,7 @@ def flush_cache(self):
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))

0 comments on commit 78d1ec3

Please sign in to comment.