Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve template logging #210

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Improve template logging #210

merged 1 commit into from
Aug 29, 2024

Conversation

tokebe
Copy link
Member

@tokebe tokebe commented Aug 19, 2024

Addresses biothings/biothings_explorer#848

After templates, the summary log will now read like so: Template Summary: Template-2 returned 45 results. (3) of these were merged with results from previous templates. Total result count is 67 (increased by 42)

In addition, the first template will not log the count of results merged with previous templates, as there are none.

Copy link
Member

@andrewsu andrewsu left a comment

Choose a reason for hiding this comment

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

That updated wording would definitely clear up my prior confusion!

@colleenXu
Copy link
Contributor

When I run the issue's queries, here's the logs I now see. I agree that this looks good:

1st template (no merging sentence!): Template Summary: Template-1 returned (3) results. Total result count is 3 (increased by 3)

2nd template (no results): Template Summary: Template-2 returned (0) results. (0) of these were merged with results from previous templates. Total result count is 3 (increased by 0)

3rd template (no results): Template Summary: Template-3 returned (0) results. (0) of these were merged with results from previous templates. Total result count is 3 (increased by 0)

@tokebe tokebe marked this pull request as ready for review August 23, 2024 15:34
@tokebe tokebe merged commit 8879267 into main Aug 29, 2024
0 of 2 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.

3 participants