Error Entity should be used

This commit is contained in:
mohitdeuex 2023-12-06 18:23:45 +05:30
parent 566c36b7f3
commit 0cac263947

View File

@ -624,7 +624,7 @@ public abstract class EntityRepository<T extends EntityInterface> {
} catch (Exception e) {
parsedEntity = clearFieldsInternal(parsedEntity, fields);
String errorEntity = JsonUtils.pojoToJson(parsedEntity);
LOG.error("Failed in Set Fields for Entity with Json : {}", JsonUtils.pojoToJson(errorEntity));
LOG.error("Failed in Set Fields for Entity with Json : {}", errorEntity);
errors.add(String.format("Error Message : %s , %n Entity Json : %s", e.getMessage(), errorEntity));
}
}