From 8415ea7eb4f9b1b705abbeca3c0c2938e34c05a6 Mon Sep 17 00:00:00 2001 From: PetreM Date: Tue, 20 Apr 2021 03:37:08 +0300 Subject: [PATCH] prevent job exception being logged twice (#1440) --- rq/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/worker.py b/rq/worker.py index 437a3ae..cb1ebf4 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -1046,7 +1046,7 @@ class Worker(object): def handle_exception(self, job, *exc_info): """Walks the exception handler stack to delegate exception handling.""" exc_string = ''.join(traceback.format_exception(*exc_info)) - self.log.error(exc_string, exc_info=True, extra={ + self.log.error(exc_string, extra={ 'func': job.func_name, 'arguments': job.args, 'kwargs': job.kwargs,