Skip to content

Commit

Permalink
[improve][client] Don't print info logs for each schema loaded by cli…
Browse files Browse the repository at this point in the history
…ent (apache#23206)

(cherry picked from commit 66e1a06)
(cherry picked from commit 06ebe2a)
  • Loading branch information
BewareMyPower authored and srinath-ctds committed Aug 23, 2024
1 parent 336d5d6 commit 959f80b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ public MultiVersionAvroReader(Schema readerSchema, ClassLoader pojoClassLoader,
protected SchemaReader<T> loadReader(BytesSchemaVersion schemaVersion) {
SchemaInfo schemaInfo = getSchemaInfoByVersion(schemaVersion.get());
if (schemaInfo != null) {
LOG.info("Load schema reader for version({}), schema is : {}, schemaInfo: {}",
SchemaUtils.getStringSchemaVersion(schemaVersion.get()),
schemaInfo.getSchemaDefinition(), schemaInfo.toString());
if (LOG.isDebugEnabled()) {
LOG.debug("Load schema reader for version({}), schema is : {}, schemaInfo: {}",
SchemaUtils.getStringSchemaVersion(schemaVersion.get()),
schemaInfo.getSchemaDefinition(), schemaInfo);
}
boolean jsr310ConversionEnabled = getJsr310ConversionEnabledFromSchemaInfo(schemaInfo);
return new AvroReader<>(parseAvroSchema(schemaInfo.getSchemaDefinition()),
readerSchema, pojoClassLoader, jsr310ConversionEnabled);
Expand Down

0 comments on commit 959f80b

Please sign in to comment.