Skip to content

Commit

Permalink
Change log lever to fine for exception caught while intercepting (#4632
Browse files Browse the repository at this point in the history
…) (#4640)

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
  • Loading branch information
tomas-langer committed Jul 29, 2022
1 parent f418d8e commit 954e1ba
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 Oracle and/or its affiliates.
* Copyright (c) 2021, 2022 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -110,7 +110,10 @@ public <T> Object run(
RuntimeException::new);
}
if (escapingException != null) {
LOGGER.log(Level.WARNING, ERROR_DURING_INTERCEPTION, escapingException);
// this exception is to be handled by JAX-RS after reported here, it should not be logged automatically
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.log(Level.FINE, ERROR_DURING_INTERCEPTION, escapingException);
}
throw escapingException;
}
return result;
Expand Down

0 comments on commit 954e1ba

Please sign in to comment.