Browse Source

Log traceback on exceptions raised from an item

tags/v0.2.3^0
JustAnotherArchivist 4 years ago
parent
commit
1678075a89
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py View File

@@ -229,7 +229,7 @@ class QWARC:
newStatus = STATUS_ERROR newStatus = STATUS_ERROR
except Exception as e: except Exception as e:
if future.taskType == 'process': 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 newStatus = STATUS_ERROR
else: else:
if future.taskType == 'process': if future.taskType == 'process':


Loading…
Cancel
Save