From 93af4314dea5c56e20d3700893defbac5b618f04 Mon Sep 17 00:00:00 2001 From: Dennis Date: Tue, 22 Aug 2023 15:58:54 -0400 Subject: [PATCH] Fix typos --- .../java/org/broadinstitute/dsm/DSMServer.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pepper-apis/dsm-core/src/main/java/org/broadinstitute/dsm/DSMServer.java b/pepper-apis/dsm-core/src/main/java/org/broadinstitute/dsm/DSMServer.java index 2a3dc8a0eb..2049828fe3 100644 --- a/pepper-apis/dsm-core/src/main/java/org/broadinstitute/dsm/DSMServer.java +++ b/pepper-apis/dsm-core/src/main/java/org/broadinstitute/dsm/DSMServer.java @@ -1059,40 +1059,40 @@ private void setupJobs(@NonNull Config cfg, @NonNull KitUtil kitUtil, @NonNull N private void setupRouteGenericErrorHandlers() { exception(DSMBadRequestException.class, (exception, request, response) -> { - logger.info("Request error processing request: {}: {}", request.url(), exception.toString()); + logger.info("Request error while processing request: {}: {}", request.url(), exception.toString()); response.status(400); response.body(exception.getMessage()); }); exception(DsmInternalError.class, (exception, request, response) -> { - logger.error("Internal error processing request: {}: {}", request.url(), exception.toString()); + logger.error("Internal error while processing request: {}: {}", request.url(), exception.toString()); exception.printStackTrace(); response.status(500); response.body(exception.getMessage()); }); exception(DDPInternalError.class, (exception, request, response) -> { - logger.error("Internal error processing request: {}: {}", request.url(), exception.toString()); + logger.error("Internal error while processing request: {}: {}", request.url(), exception.toString()); exception.printStackTrace(); response.status(500); response.body(exception.getMessage()); }); exception(AuthorizationException.class, (exception, request, response) -> { - logger.info("Authorization error processing request: {}: {}", request.url(), exception.toString()); + logger.info("Authorization error while processing request: {}: {}", request.url(), exception.toString()); response.status(403); response.body(exception.getMessage()); }); exception(TokenExpiredException.class, (exception, request, response) -> { - logger.info("Token expiration processing request: {}: {}", request.url(), exception.toString()); + logger.info("Token expiration while processing request: {}: {}", request.url(), exception.toString()); response.status(401); response.body(exception.getMessage()); }); exception(InvalidTokenException.class, (exception, request, response) -> { - logger.info("Invalid token processing request: {}: {}", request.url(), exception.toString()); + logger.info("Invalid token while processing request: {}: {}", request.url(), exception.toString()); response.status(401); response.body(exception.getMessage()); }); exception(AuthenticationException.class, (exception, request, response) -> { // this is a fallback exception, log it warn level to see why it is happening - logger.warn("Authentication error processing request: {}: {}", request.url(), exception.toString()); + logger.warn("Authentication error while processing request: {}: {}", request.url(), exception.toString()); response.status(401); response.body(exception.getMessage()); });