Skip to content

Commit

Permalink
fix: use warn instead of trace for WC exporters discovering (#10507)
Browse files Browse the repository at this point in the history
fixes #9855
  • Loading branch information
Denis authored and vaadin-bot committed Mar 31, 2021
1 parent 395d333 commit 6ee41d3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -91,15 +91,15 @@ private static boolean isEligible(Class<?> clazz) {
.filter(ctor -> ctor.getParameterCount() == 0).findFirst();
if (!constructor.isPresent()
|| !Modifier.isPublic(constructor.get().getModifiers())) {
getLogger().trace(
getLogger().warn(
"Class {} has no public no-argument constructor, and won't be instantiated as a '{}' by default",
clazz.getName(),
WebComponentExporter.class.getSimpleName());
return false;
}
if (clazz.getEnclosingClass() != null
&& !Modifier.isStatic(clazz.getModifiers())) {
getLogger().trace(
getLogger().warn(
"Class {} is inner (nested non static) class, and won't be instantiated as a '{}' by default",
clazz.getName(),
WebComponentExporter.class.getSimpleName());
Expand Down

0 comments on commit 6ee41d3

Please sign in to comment.