Skip to content

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

Closed
wants to merge 1 commit into from
Closed

Remove unused code for reducing logging to sentry. #5073

wants to merge 1 commit into from

Conversation

dojutsu-user
Copy link
Member

After #5054 got merged. The code used for reducing logging to sentry can be removed.

Related Issue: #4590
Related Comments: #1

@stsewd stsewd added this to the Cleanup milestone Jan 7, 2019
Copy link
Member

@humitos humitos left a 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`,
Copy link
Member

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
Copy link
Member

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.

Copy link
Member Author

@dojutsu-user dojutsu-user Jan 16, 2019

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.

@stale
Copy link

stale bot commented Apr 9, 2019

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.

@stale stale bot added the Status: stale Issue will be considered inactive soon label Apr 9, 2019
@stale stale bot closed this Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: stale Issue will be considered inactive soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants