Skip to content

Commit

Permalink
fix: update log levels for non-critical errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shariff-6 committed Dec 23, 2024
1 parent e433ee4 commit d5f4774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/jira/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ async def handle_webhook_request(data: dict[str, Any]) -> dict[str, Any]:
item = await client.get_single_issue(issue_key)
kind = ObjectKind.ISSUE
case _:
logger.error(f"Unknown webhook event type: {webhook_event}")
logger.warning(f"Unknown webhook event type: {webhook_event}")
return {
"ok": False,
"error": f"Unknown webhook event type: {webhook_event}",
}

if not item:
error_msg = f"Failed to retrieve {kind}"
logger.error(error_msg)
logger.warning(error_msg)
return {"ok": False, "error": error_msg}

logger.debug(f"Retrieved {kind} item: {item}")
Expand Down

0 comments on commit d5f4774

Please sign in to comment.