Skip to content

Commit

Permalink
Don't log stack trace for expected exceptions (#9279)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Aug 22, 2023
1 parent b8753fb commit 04436a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ static boolean isImplPresent(String implSimpleClassName) {
// dependency is not on the class path).
logger.log(
Level.FINE,
e,
() ->
implFullClassName
+ " not present. "
"Failed to load "
+ implFullClassName
+ " ("
+ e.getClass().getName()
+ "). "
+ "Most likely, corresponding SDK component is either not on classpath or incompatible.");
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ static boolean isImplPresent(String implSimpleClassName) {
// dependency is not on the class path).
logger.log(
Level.FINE,
e,
() ->
implFullClassName
+ " not present. "
"Failed to load "
+ implFullClassName
+ " ("
+ e.getClass().getName()
+ "). "
+ "Most likely, corresponding SDK component is either not on classpath or incompatible.");
return false;
}
Expand Down

0 comments on commit 04436a1

Please sign in to comment.