-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove unused code for reducing logging to sentry. #5073
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it going well but we want to keep logging warning exception as a log.warning
. Please, use git log history to check how was the code before I added the WARNING_EXCEPTIONS
check because I suppose we want something similar to that.
subclasses of BuildEnvironmentException. For | ||
:py:class:`BuildEnvironmentWarning`, exit this context gracefully, but | ||
don't mark the build as a failure. For all other exception classes, | ||
If the exception's type is :py:class:`BuildEnvironmentWarning`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still want to communicate here that all subbclasses of the Warning
exception won't mark the build as failure.
self.failure = exc_value | ||
else: | ||
log_level_function = log.error | ||
if not issubclass(exc_type, BuildEnvironmentWarning): | ||
self.failure = exc_value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do want to log the BuildEnvironmentWarning
ones as a log.warning
, but it seems that you remove all the log.
calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
I thought the task.throws
is already logging them and then we again log them here, so it is kind of redundant.
However, I think that this PR is no longer required after #5118 .
Would like to know your views on this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
After #5054 got merged. The code used for reducing logging to sentry can be removed.
Related Issue: #4590
Related Comments: #1