NIFI-10141: Fix WriteJsonResult logging to show writer's schema (#6142)

* NIFI-10141: Fix WriteJsonResult logging to show writer's schema
This commit is contained in:
Matt Burgess 2022-06-21 16:53:30 -04:00 committed by GitHub
parent 1de9c72779
commit b60b9b8e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public class WriteJsonResult extends AbstractRecordSetWriter implements RecordSe
endTask.apply(generator);
} catch (final Exception e) {
logger.error("Failed to write {} with schema {} as a JSON Object due to {}", new Object[] {record, record.getSchema(), e.toString(), e});
logger.error("Failed to write {} with reader schema {} and writer schema {} as a JSON Object due to {}", record, record.getSchema(), writeSchema, e.toString(), e);
throw e;
}
}