LiveSync: Be a little more verbose in celery task

This commit is contained in:
Pedro Ferreira 2015-06-04 15:07:37 +02:00
parent d5043a5554
commit bbc58a5e89
2 changed files with 2 additions and 1 deletions

View File

@ -96,6 +96,7 @@ class LiveSyncBackendBase(object):
records = self.fetch_records()
uploader = self.uploader(self)
LiveSyncPlugin.logger.info('Uploading {} records'.format(len(records)))
uploader.run(records)
self.update_last_run()

View File

@ -43,7 +43,7 @@ class Uploader(object):
"""
self_name = type(self).__name__
for i, batch in enumerate(grouper(records, self.BATCH_SIZE, skip_missing=True), 1):
self.logger.debug('{} processing batch {}'.format(self_name, i))
self.logger.info('{} processing batch {}'.format(self_name, i))
try:
self.upload_records(batch, from_queue=True)
except Exception: