Commit 68cfbdeb1d8dbfc549a677f09d51d7c900f36873

Authored by Andrii Shvaika
1 parent 257f1a7c

Log levels

@@ -243,8 +243,8 @@ public class DefaultAlarmQueryRepository implements AlarmQueryRepository { @@ -243,8 +243,8 @@ public class DefaultAlarmQueryRepository implements AlarmQueryRepository {
243 } 243 }
244 List<Map<String, Object>> rows = jdbcTemplate.queryForList(dataQuery, ctx); 244 List<Map<String, Object>> rows = jdbcTemplate.queryForList(dataQuery, ctx);
245 if (logSqlQueries) { 245 if (logSqlQueries) {
246 - log.error("QUERY: {}", dataQuery);  
247 - Arrays.asList(ctx.getParameterNames()).forEach(param -> log.error("QUERY PARAM: {}->{}", param, ctx.getValue(param))); 246 + log.info("QUERY: {}", dataQuery);
  247 + Arrays.asList(ctx.getParameterNames()).forEach(param -> log.info("QUERY PARAM: {}->{}", param, ctx.getValue(param)));
248 } 248 }
249 return AlarmDataAdapter.createAlarmData(pageLink, rows, totalElements, orderedEntityIds); 249 return AlarmDataAdapter.createAlarmData(pageLink, rows, totalElements, orderedEntityIds);
250 }); 250 });
@@ -338,8 +338,8 @@ public class DefaultEntityQueryRepository implements EntityQueryRepository { @@ -338,8 +338,8 @@ public class DefaultEntityQueryRepository implements EntityQueryRepository {
338 dataQuery = String.format("%s limit %s offset %s", dataQuery, pageLink.getPageSize(), startIndex); 338 dataQuery = String.format("%s limit %s offset %s", dataQuery, pageLink.getPageSize(), startIndex);
339 } 339 }
340 if (logSqlQueries) { 340 if (logSqlQueries) {
341 - log.error("QUERY: {}", dataQuery);  
342 - Arrays.asList(ctx.getParameterNames()).forEach(param -> log.error("QUERY PARAM: {}->{}", param, ctx.getValue(param))); 341 + log.info("QUERY: {}", dataQuery);
  342 + Arrays.asList(ctx.getParameterNames()).forEach(param -> log.info("QUERY PARAM: {}->{}", param, ctx.getValue(param)));
343 } 343 }
344 List<Map<String, Object>> rows = jdbcTemplate.queryForList(dataQuery, ctx); 344 List<Map<String, Object>> rows = jdbcTemplate.queryForList(dataQuery, ctx);
345 return EntityDataAdapter.createEntityData(pageLink, selectionMapping, rows, totalElements); 345 return EntityDataAdapter.createEntityData(pageLink, selectionMapping, rows, totalElements);