Skip to content

Commit

Permalink
Merge pull request #4 from epidemicsound/fix-positional-arguments
Browse files Browse the repository at this point in the history
Fixed the positional argument on the logger
  • Loading branch information
Abhimanyu Babbar authored Apr 16, 2019
2 parents 0996eee + 4ba87bc commit a52b09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def _work(self):
else:
message_type = response['type']
if message_type == 'NO_MESSAGES_ON_QUEUE':
self.logger.info('No messages in queue, sleeping for %ss',
settings.NO_MESSAGE_SLEEP_INTERVAL)
self.logger.info('No messages in queue, sleeping',
extra=dict(sleep=settings.NO_MESSAGE_SLEEP_INTERVAL))
time.sleep(settings.NO_MESSAGE_SLEEP_INTERVAL)
else:
raise Exception('Unhandled error {}', message_type)
Expand Down

0 comments on commit a52b09c

Please sign in to comment.