Skip to content

Commit 1352a04

Browse files
author
Erin
committed
Improved logging in schemas-core AvroUtils coerceValueForSchema to include the schema type.
1 parent 584eb29 commit 1352a04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

schemas-core/src/main/java/org/cedar/schemas/avro/util/AvroUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public static <T extends IndexedRecord> T mapToAvro(Map input, Class<T> avroClas
116116
}
117117

118118
public static Object coerceValueForSchema(Object value, Schema schema) {
119-
log.debug("coercing value [" + value + "] for schema [" + schema.getFullName() + "]");
119+
log.debug("coercing value [" + value + "] for schema [" + schema.getFullName() + "] for schema type [" +
120+
schema.getType() + "]");
120121
switch(schema.getType()) {
121122
case RECORD:
122123
if (value instanceof Map) {

0 commit comments

Comments
 (0)