Skip to content

Commit

Permalink
feat: decreace log level at converters
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Jul 21, 2024
1 parent 2247ef9 commit fe10cf4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
Expand Down Expand Up @@ -67,7 +68,7 @@ private <T> T getInstance(FieldParameterMetadata metadata) {
CreationalContext<T> ctx = beanManager.createCreationalContext(bean);
return (T) beanManager.getReference(bean, type, ctx);
} else {
LOGGER.info("The converter type: " + type + " not found on CDI context, creating by constructor");
LOGGER.log(Level.FINE, "The converter type: " + type + " not found on CDI context, creating by constructor");
return (T) metadata.newConverter() .orElseThrow(() -> new NoSuchElementException("There is not converter to the field: "
+ metadata.name() + " in the Field: " + metadata.type()));
}
Expand Down

0 comments on commit fe10cf4

Please sign in to comment.