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

Error in log statement #829

Merged
merged 5 commits into from Aug 12, 2018
Jump to file or symbol
Failed to load files and symbols.
+5 −1
Diff settings

Always

Just for now

@@ -50,6 +50,7 @@
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.security.InvalidAlgorithmParameterException;
import static io.undertow.Handlers.path;
@@ -361,8 +362,11 @@ private AbstractResponse process(final String requestString, InetSocketAddress s
} catch (final ValidationException e) {
log.info("API Validation failed: " + e.getLocalizedMessage());
return ErrorResponse.create(e.getLocalizedMessage());
} catch (final InvalidAlgorithmParameterException e) {
log.info("API InvalidAlgorithmParameter passed: " + e.getLocalizedMessage());
return ErrorResponse.create(e.getLocalizedMessage());
} catch (final Exception e) {
log.error("API Exception: ", e);
log.error("API Exception: {}", e.getLocalizedMessage(), e);
return ExceptionResponse.create(e.getLocalizedMessage());
}
}
ProTip! Use n and p to navigate between commits in a pull request.