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

remove log.error() on cases where it's not really system error #782

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

shintasmith
Copy link
Contributor

remove calls to log.error() as an invalid user input should not be considered an error

@shintasmith
Copy link
Contributor Author

@usnavi @ChandraAddala @izrik pls review

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 74.497% when pulling 756b313 on shintasmith:rm_log_err into 53978b9 on rackerlabs:master.

DefaultHandler.sendErrorResponse(ctx, request, ex.getMessage(), HttpResponseStatus.BAD_REQUEST);
} catch (TimeoutException ex) {
DefaultHandler.sendErrorResponse(ctx, request, "Timed out persisting metrics", HttpResponseStatus.ACCEPTED);
} catch (Exception ex) {
log.debug(String.format("BAD JSON: %s", body));
log.debug(String.format("Exception processing: %s", body));
Copy link
Contributor

Choose a reason for hiding this comment

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

If we get some exception which we are not expecting, I think we need some visibility to it. Should we log error here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is already a log.error(). See the line below.

Copy link
Contributor

Choose a reason for hiding this comment

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

I must be blind.

@shintasmith shintasmith merged commit 2ef996a into rax-maas:master Feb 8, 2017
@shintasmith shintasmith deleted the rm_log_err branch April 28, 2017 16:31
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.

None yet

4 participants