We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b842b23 commit a2efa30Copy full SHA for a2efa30
src/notify_admin/__init__.py
@@ -20,6 +20,7 @@ async def notify_admin(request: Request):
20
async with session.post(
21
settings.notify_admin_url, json=body
22
) as response:
23
- pass
+ if response.status < 200 or response.status >= 300:
24
+ logger.warning(f"notify_admin failed with status {response.status}, body: {body}")
25
except Exception as e:
26
logger.error(f"notify_admin error: {e}, body: {body}")
0 commit comments