Skip to content

Commit

Permalink
slightly improve error message on actor task exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Mar 10, 2016
1 parent 8e87847 commit 08f4fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lithoxyl/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def _run(self):
if not self._daemonize_thread:
raise
except Exception as e:
self.note('task_exception', '%s - task() raised: %r'
% (time.time(), e))
self.note('task_exception', '%s - task() (%r) raised: %r'
% (time.time(), self.task, e))
self.interval = min(self.interval * 2, self.max_interval)
else:
decrement = (self.max_interval - self._orig_interval) / 8
Expand Down

0 comments on commit 08f4fba

Please sign in to comment.