Skip to content

Commit b0d63bf

Browse files
author
Erin
committed
Added logging to coerceValueForSchema for when recursively trying.
1 parent 8bffd84 commit b0d63bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public static Object coerceValueForSchema(Object value, Schema schema) {
165165
break;
166166

167167
case UNION:
168+
log.debug("Recursively trying to coerce the value into one of these schemas types: "+schema.getTypes());
168169
for (Schema type : schema.getTypes()) {
169170
try {
170171
return coerceValueForSchema(value, type);

0 commit comments

Comments
 (0)