瀏覽代碼

Log traceback on exceptions raised from an item

tags/v0.2.3^0
JustAnotherArchivist 4 年之前
父節點
當前提交
1678075a89
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
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':


Loading…
取消
儲存