-
Notifications
You must be signed in to change notification settings - Fork 56
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
Suppress Error messages #965
Conversation
Signed-off-by: saakhan <[email protected]>
@@ -121,7 +121,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response) | |||
sendErrorResponse(response, null, HttpServletResponse.SC_BAD_REQUEST, addedToDB.getMessage()); | |||
} | |||
} else { | |||
LOGGER.error("Failed to create experiment: {}", invalidKruizeObject.getValidation_data().getMessage()); | |||
LOGGER.debug("Failed to create experiment: {}", invalidKruizeObject.getValidation_data().getMessage()); |
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.
this is actual error and need logging
coz we sending error response to user .. so let it be error itself
tx.commit(); | ||
tx = session.beginTransaction(); | ||
// create partitions based on entry object | ||
createPartitions(entry); | ||
session.persist(entry); | ||
session.flush(); | ||
} catch (Exception partitionException) { | ||
LOGGER.error(partitionException.getMessage()); | ||
LOGGER.debug(partitionException.getMessage()); |
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.
Should be error
…ror-msgs # Conflicts: # src/main/java/com/autotune/analyzer/services/CreateExperiment.java
Signed-off-by: saakhan <[email protected]>
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.
LGTM
This PR contains minor fix to change error messages to debug while retrying partition creation.