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 (#23206)
  • Loading branch information
BewareMyPower authored Aug 21, 2024
1 parent b661ec8 commit 66e1a06
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 66e1a06

Please sign in to comment.