From d2eb4ee272850d0529b6835966a47db1c25bb230 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 15 Aug 2017 15:15:29 -0400 Subject: [PATCH] WRN-1841: log exception with logger.exception. --- openwebvulndb/common/parallel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwebvulndb/common/parallel.py b/openwebvulndb/common/parallel.py index 039e4c1..a70fe88 100644 --- a/openwebvulndb/common/parallel.py +++ b/openwebvulndb/common/parallel.py @@ -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()