Skip to content

Commit

Permalink
fix: improve error logging in GitHub polling service
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Feb 1, 2025
1 parent 9aafe18 commit 7127a03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pr_agent/servers/github_polling.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ async def is_valid_notification(notification, headers, handled_ids, session, use
artifact={"comment": comment_body})
return True, handled_ids, comment, comment_body, pr_url, user_tag

get_logger().error(f"Failed to fetch comments for PR: {pr_url}")
get_logger().warning(f"Failed to fetch comments for PR: {pr_url}",
artifact={"comments": comments})
return False, handled_ids

return False, handled_ids
except Exception as e:
get_logger().error(f"Error processing notification: {e}", artifact={"traceback": traceback.format_exc()})
get_logger().exception(f"Error processing polling notification",
artifact={"notification": notification, "error": e})
return False, handled_ids


Expand Down

0 comments on commit 7127a03

Please # to comment.