From 1678075a896fef86d57b5d982c8274a892a7245d Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Mon, 6 Jan 2020 01:43:40 +0000 Subject: [PATCH] Log traceback on exceptions raised from an item --- qwarc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qwarc/__init__.py b/qwarc/__init__.py index 8abaca4..0b2b3e4 100644 --- a/qwarc/__init__.py +++ b/qwarc/__init__.py @@ -229,7 +229,7 @@ class QWARC: newStatus = STATUS_ERROR except Exception as e: if future.taskType == 'process': - logging.error(f'{future.itemType}:{future.itemValue} failed: {e!r} ({item.stats["requests"]} requests, {item.stats["tx"]} tx, {item.stats["rx"]} rx)') + logging.error(f'{future.itemType}:{future.itemValue} failed: {e!r} ({item.stats["requests"]} requests, {item.stats["tx"]} tx, {item.stats["rx"]} rx)', exc_info = e) newStatus = STATUS_ERROR else: if future.taskType == 'process':