Skip to content

Conversation

@YishaiGlasner
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds logging statements to the process_sheet_by_content method in the sheet scorer to track when sheets are received and when results are being returned. This supports observability and debugging of the sheet scoring process.

Changes:

  • Added entry log when a sheet is received for scoring
  • Added exit log before returning successful GPT-based scoring results

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return self.create_failure_output(sheet_id=sheet_id,
request_status_message=request_status_message)

logger.info(f"Returning results for sheet {sheet_id}")
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message "Returning results for sheet {sheet_id}" is misleading because it only covers the successful return path. The function has other return paths at lines 755, 770, and 792 that also return results. Consider using a more specific message like "Successfully scored sheet {sheet_id}" or "Returning successful GPT-based scores for sheet {sheet_id}" to clarify that this log applies only to the successful GPT analysis path.

Suggested change
logger.info(f"Returning results for sheet {sheet_id}")
logger.info(f"Returning successful GPT-based scores for sheet {sheet_id}")

Copilot uses AI. Check for mistakes.
@YishaiGlasner YishaiGlasner merged commit ea388e3 into main Jan 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant