mirror of https://github.com/apache/druid.git
Reduce log spam from Avro decoders. (#4205)
These objects get constructed semi-frequently (any time a parser is deserialized) and so info logs are spammy. They'll still appear in task logs at least once, since they're part of the task definition and will get logged due to that.
This commit is contained in:
parent
336089563d
commit
3b92220015
|
@ -61,7 +61,7 @@ public class InlineSchemaAvroBytesDecoder implements AvroBytesDecoder
|
||||||
this.schema = schema;
|
this.schema = schema;
|
||||||
String schemaStr = mapper.writeValueAsString(schema);
|
String schemaStr = mapper.writeValueAsString(schema);
|
||||||
|
|
||||||
LOGGER.info("Schema string [%s]", schemaStr);
|
LOGGER.debug("Schema string [%s]", schemaStr);
|
||||||
this.schemaObj = new Schema.Parser().parse(schemaStr);
|
this.schemaObj = new Schema.Parser().parse(schemaStr);
|
||||||
this.reader = new GenericDatumReader<>(this.schemaObj);
|
this.reader = new GenericDatumReader<>(this.schemaObj);
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class InlineSchemasAvroBytesDecoder implements AvroBytesDecoder
|
||||||
Map<String, Object> schema = e.getValue();
|
Map<String, Object> schema = e.getValue();
|
||||||
String schemaStr = mapper.writeValueAsString(schema);
|
String schemaStr = mapper.writeValueAsString(schema);
|
||||||
|
|
||||||
LOGGER.info("Schema string [%s] = [%s]", id, schemaStr);
|
LOGGER.debug("Schema string [%s] = [%s]", id, schemaStr);
|
||||||
schemaObjs.put(id, new Schema.Parser().parse(schemaStr));
|
schemaObjs.put(id, new Schema.Parser().parse(schemaStr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue