| 1234567891011121314151617 |
- """
- Exception Handle Functions
- """
- async def handle_spider_exception(log_client, error, traceback, trace_id, task_name):
- await log_client.log(
- contexts={
- "data": {
- "error": error,
- "traceback": traceback,
- },
- "trace_id": trace_id,
- "message": "爬虫接口请求失败",
- "task": task_name,
- }
- )
|