Added logging of the query

This commit is contained in:
Luca Frosini 2022-12-02 15:44:52 +01:00
parent 5fb9ff33ef
commit f808577fd6
1 changed files with 4 additions and 1 deletions

View File

@ -120,7 +120,10 @@ public class JsonQuery {
Map<String, Object> map = new HashMap<>();
map.put("limit", JsonQuery.UNBOUNDED_LIMIT);
OResultSet resultSet = oDatabaseDocument.query(stringBuffer.toString(), map);
String query = stringBuffer.toString();
logger.trace("Going to execute the following query:\n{} \n from the JSONQuery\n{}", query, objectMapper.writeValueAsString(jsonQuery));
OResultSet resultSet = oDatabaseDocument.query(query, map);
ArrayNode arrayNode = objectMapper.createArrayNode();