diff --git a/kibun/backend/aio/request.py b/kibun/backend/aio/request.py index 3a0cf65..ae68084 100644 --- a/kibun/backend/aio/request.py +++ b/kibun/backend/aio/request.py @@ -75,7 +75,9 @@ async def request_aio(session, endpoint, task): attempts += 1 - logger.error(f"Request failed {endpoint} {status} ({attempts})") + # There is no need to spam generic error messages + if status not in [constants.NETWORK_ERROR]: + logger.error(f"Request failed {endpoint} {status} ({attempts})") if task.sleep > 0: await asyncio.sleep(task.sleep) diff --git a/kibun/task.py b/kibun/task.py index 51d10db..5f65e0b 100644 --- a/kibun/task.py +++ b/kibun/task.py @@ -70,9 +70,6 @@ def create_task( error_markers=constants.DEFAULT_MARKERS, headers=None, ): - if constants.NETWORK_ERROR not in done_status: - done_status.append(constants.NETWORK_ERROR) - if constants.NETWORK_ERROR not in retry_status: retry_status.append(constants.NETWORK_ERROR)