Skip to content

Commit

Permalink
Avoid logging the authentication challenge to the messages servlet
Browse files Browse the repository at this point in the history
  • Loading branch information
russgold committed Jul 24, 2020
1 parent 814814d commit 84754ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/oracle/wls/exporter/ExporterServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ private void displayMetrics(WebClient webClient, MetricsStream metricsStream, MB
} catch (RestQueryException e) {
metricsStream.println(
withCommentMarkers("REST service was unable to handle this query\n"
+ selector.getPrintableRequest() + '\n'
+ "exception: " + e.getMessage()));
+ selector.getPrintableRequest() + '\n'
+ "exception: " + e.getMessage()));
} catch (AuthenticationChallengeException e) { // don't add a message for this case
throw e;
} catch (IOException | RuntimeException | Error e) {
MessagesServlet.addExchange(getQueryUrl(selector), selector.getRequest(), toStackTrace(e));
throw e;
Expand Down

0 comments on commit 84754ba

Please sign in to comment.