Skip to content

Commit

Permalink
fix: better log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jan 17, 2025
1 parent 275cf7f commit bd8e412
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public SchemaContributorBuildItem registerDatasources(
BuildProducer<SystemPropertyBuildItem> systemPropProducer,
BuildProducer<GeneratedResourceBuildItem> generatedResourceBuildItemBuildProducer,
FTLRecorder recorder) {
log.infof("Processing %d datasource annotations into decls", datasources.size());
log.debugf("Processing %d datasource annotations into decls", datasources.size());
List<Decl> decls = new ArrayList<>();
List<String> namedDatasources = new ArrayList<>();
for (var ds : datasources) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SchemaContributorBuildItem handleEnums(
FTLRecorder recorder,
CommentsBuildItem commentsBuildItem) {
var enumAnnotations = index.getIndex().getAnnotations(FTLDotNames.ENUM);
log.infof("Processing %d enum annotations into decls", enumAnnotations.size());
log.debugf("Processing %d enum annotations into decls", enumAnnotations.size());
return new SchemaContributorBuildItem(moduleBuilder -> {
try {
var decls = extractEnumDecls(index, enumAnnotations, recorder, moduleBuilder, commentsBuildItem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void generateSchema(CombinedIndexBuildItem index,
i.getSchemaContributor().accept(moduleBuilder);
}

log.infof("Generating module '%s' schema from %d decls", moduleName, moduleBuilder.getDeclsCount());
log.debugf("Generating module '%s' schema from %d decls", moduleName, moduleBuilder.getDeclsCount());
Path output = outputTargetBuildItem.getOutputDirectory().resolve(SCHEMA_OUT);
Path errorOutput = outputTargetBuildItem.getOutputDirectory().resolve(ERRORS_OUT);
ByteArrayOutputStream sch = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class TopicsProcessor {
TopicsBuildItem handleTopics(CombinedIndexBuildItem index, BuildProducer<GeneratedClassBuildItem> generatedTopicProducer,
BuildProducer<AdditionalBeanBuildItem> beans) {
var topicDefinitions = index.getComputingIndex().getAnnotations(FTLDotNames.TOPIC);
log.infof("Processing %d topic definition annotations into decls", topicDefinitions.size());
log.debugf("Processing %d topic definition annotations into decls", topicDefinitions.size());
Map<DotName, TopicsBuildItem.DiscoveredTopic> topics = new HashMap<>();
Set<String> names = new HashSet<>();
for (var topicDefinition : topicDefinitions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void processTypeAlias(CombinedIndexBuildItem index,
BuildProducer<AdditionalBeanBuildItem> additionalBeanBuildItem,
BuildProducer<TypeAliasBuildItem> typeAliasBuildItemBuildProducer) {
Collection<AnnotationInstance> typeAliasAnnotations = index.getIndex().getAnnotations(FTLDotNames.TYPE_ALIAS);
log.infof("Processing %d type alias annotations into decls", typeAliasAnnotations.size());
log.debugf("Processing %d type alias annotations into decls", typeAliasAnnotations.size());
var beans = new AdditionalBeanBuildItem.Builder().setUnremovable();
for (var mapper : typeAliasAnnotations) {
boolean exported = mapper.target().hasAnnotation(FTLDotNames.EXPORT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ VerbClientBuildItem handleVerbClients(CombinedIndexBuildItem index, BuildProduce
ModuleNameBuildItem moduleNameBuildItem,
LaunchModeBuildItem launchModeBuildItem) {
var clientDefinitions = index.getComputingIndex().getAnnotations(VerbClient.class);
log.infof("Processing %d verb clients", clientDefinitions.size());
log.debugf("Processing %d verb clients", clientDefinitions.size());
Map<DotName, VerbClientBuildItem.DiscoveredClients> clients = new HashMap<>();
for (var clientDefinition : clientDefinitions) {
var callMethod = clientDefinition.target().asMethod();
Expand Down Expand Up @@ -154,7 +154,7 @@ public void verbsAndCron(CombinedIndexBuildItem index,
List<TypeAliasBuildItem> typeAliasBuildItems // included to force typealias processing before this
) {
Collection<AnnotationInstance> verbAnnotations = index.getIndex().getAnnotations(FTLDotNames.VERB);
log.infof("Processing %d verb annotations into decls", verbAnnotations.size());
log.debugf("Processing %d verb annotations into decls", verbAnnotations.size());
var beans = AdditionalBeanBuildItem.builder().setUnremovable();
for (var verb : verbAnnotations) {
boolean exported = verb.target().hasAnnotation(FTLDotNames.EXPORT);
Expand All @@ -166,7 +166,7 @@ public void verbsAndCron(CombinedIndexBuildItem index,
}

Collection<AnnotationInstance> cronAnnotations = index.getIndex().getAnnotations(FTLDotNames.CRON);
log.infof("Processing %d cron job annotations into decls", cronAnnotations.size());
log.debugf("Processing %d cron job annotations into decls", cronAnnotations.size());
for (var cron : cronAnnotations) {
var method = cron.target().asMethod();
String className = method.declaringClass().name().toString();
Expand Down

0 comments on commit bd8e412

Please sign in to comment.