Skip to content

Commit

Permalink
WRN-1841: log exception with logger.exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasAubry committed Aug 15, 2017
1 parent 09cc457 commit d2eb4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwebvulndb/common/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def consume(self, n):
else:
await coroutine(*args, **kwargs)
except Exception as e:
logger.warn("Unexpected exception in {} {}: {}".format(self.name, n, repr(e)))
logger.exception(e)
finally:
self.queue.task_done()

Expand Down

0 comments on commit d2eb4ee

Please sign in to comment.