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

[ANCHOR-616] Lower request validation error log level #1270

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ subprojects {

allprojects {
group = "org.stellar.anchor-sdk"
version = "1.2.22"
version = "1.2.23"

tasks.jar {
manifest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.stellar.anchor.platform.controller;

import static org.stellar.anchor.util.Log.errorEx;
import static org.stellar.anchor.util.Log.*;

import javax.transaction.NotSupportedException;
import org.springframework.http.HttpStatus;
Expand All @@ -18,14 +18,14 @@ public class GlobalControllerExceptionHandler {
@ResponseStatus(HttpStatus.BAD_REQUEST)
@ExceptionHandler({SepValidationException.class, BadRequestException.class})
public SepExceptionResponse handleBadRequest(AnchorException ex) {
errorEx(ex);
info(ex.getMessage());
return new SepExceptionResponse(ex.getMessage());
}

@ResponseStatus(HttpStatus.BAD_REQUEST)
@ExceptionHandler(MissingServletRequestParameterException.class)
public SepExceptionResponse handleMissingParams(MissingServletRequestParameterException ex) {
errorEx(ex);
info(ex.getMessage());
String name = ex.getParameterName();
return new SepExceptionResponse(String.format("The \"%s\" parameter is missing.", name));
}
Expand All @@ -41,6 +41,7 @@ public SepExceptionResponse handleRandomException(HttpMessageNotReadableExceptio
@ExceptionHandler({SepNotAuthorizedException.class})
public SepExceptionResponse handleAuthError(SepException ex) {
errorEx(ex);

return new SepExceptionResponse(ex.getMessage());
}

Expand Down
Loading