소스 검색

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


불러오는 중...
취소
저장