Don't log stack trace for expected exceptions (#9279)

This commit is contained in:
Lauri Tulmin 2023-08-22 21:58:40 +03:00 committed by GitHub
parent b8753fba32
commit 04436a13b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -45,10 +45,12 @@ final class PluginImplUtil { // TODO: Copy & paste from v2
// 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;
}

View File

@ -45,10 +45,12 @@ final class PluginImplUtil { // TODO: Copy & pasted to v1
// 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;
}