mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
fix: improve error logging in GitHub polling service
This commit is contained in:
@ -130,12 +130,14 @@ async def is_valid_notification(notification, headers, handled_ids, session, use
|
|||||||
artifact={"comment": comment_body})
|
artifact={"comment": comment_body})
|
||||||
return True, handled_ids, comment, comment_body, pr_url, user_tag
|
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
|
||||||
|
|
||||||
return False, handled_ids
|
return False, handled_ids
|
||||||
except Exception as e:
|
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
|
return False, handled_ids
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user