Skip to content

Commit a2efa30

Browse files
MistEOCopilot
andauthored
chore: log warning
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b842b23 commit a2efa30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/notify_admin/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ async def notify_admin(request: Request):
2020
async with session.post(
2121
settings.notify_admin_url, json=body
2222
) as response:
23-
pass
23+
if response.status < 200 or response.status >= 300:
24+
logger.warning(f"notify_admin failed with status {response.status}, body: {body}")
2425
except Exception as e:
2526
logger.error(f"notify_admin error: {e}, body: {body}")

0 commit comments

Comments
 (0)