Skip to content

refactor: Move some log statements closer to relevant code#578

Open
JNygaard-Skylight wants to merge 1 commit into
mainfrom
josh/move-some-logging-statements
Open

refactor: Move some log statements closer to relevant code#578
JNygaard-Skylight wants to merge 1 commit into
mainfrom
josh/move-some-logging-statements

Conversation

@JNygaard-Skylight
Copy link
Copy Markdown
Collaborator

Description

There are several log statements in the TTC lambda function that could be moved into their relevant modules:

  • "Evaluating candidates and selecting relevant text for each error in the eICR" can be moved into the embedder
  • "Evaluating candidates and selecting relevant text" can be moved into the evaluator.

Related Issues

Closes # n/a

Additional Notes

This was something I ended up doing for PR 570 to reduce the size of the _process_schematron_errors function. However it can be easily moved into its own PR.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.87%. Comparing base (3a0500d) to head (9efb369).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #578      +/-   ##
==========================================
+ Coverage   90.85%   90.87%   +0.01%     
==========================================
  Files          50       50              
  Lines        2691     2695       +4     
==========================================
+ Hits         2445     2449       +4     
  Misses        246      246              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JNygaard-Skylight JNygaard-Skylight marked this pull request as ready for review May 26, 2026 17:13
Copy link
Copy Markdown
Collaborator

@robertandremitchell robertandremitchell left a comment

Choose a reason for hiding this comment

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

lgtm!

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.

3 participants