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

If an error is already handled and logged, do not re-log that same error. #5286

Merged

Conversation

metroid-samus
Copy link
Contributor

The create_genai_signal_analysis_message() function manages and logs edge cases where a signal summary isn't generated. When no summary is produced, the function returns an empty list. The result from create_genai_signal_analysis_message() is posted to a Slack channel. If the result is empty, Slack will generate an error. However, since this error has already been handled and logged, there is no need to log it again.

@metroid-samus metroid-samus added the bug Something isn't working label Oct 3, 2024
@metroid-samus metroid-samus self-assigned this Oct 3, 2024
@metroid-samus metroid-samus marked this pull request as ready for review October 3, 2024 20:15
Copy link
Contributor

@mvilanova mvilanova left a comment

Choose a reason for hiding this comment

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

Thanks!

@metroid-samus metroid-samus merged commit 181f9ab into master Oct 3, 2024
9 checks passed
@metroid-samus metroid-samus deleted the bugfix/do-not-double-log-genai-signal-analysis-errors branch October 3, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants