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

Suppress Error messages #965

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

khansaad
Copy link
Contributor

This PR contains minor fix to change error messages to debug while retrying partition creation.

@@ -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());
Copy link
Contributor

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());
Copy link
Contributor

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
@khansaad khansaad requested a review from msvinaykumar October 31, 2023 13:23
Copy link
Contributor

@dinogun dinogun left a comment

Choose a reason for hiding this comment

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

LGTM

@dinogun dinogun merged commit acf97dd into kruize:remote_monitoring Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants