Downgrade some logs

This commit is contained in:
2023-04-26 10:21:22 -05:00
parent 8094c29ec7
commit e0e4519708
2 changed files with 10 additions and 10 deletions

View File

@ -239,7 +239,7 @@ public class DMLAuditAction extends AbstractQActionFunction<DMLAuditInput, DMLAu
// new AuditAction().executeAsync(auditInput); // todo async??? maybe get that from rules??? // new AuditAction().executeAsync(auditInput); // todo async??? maybe get that from rules???
new AuditAction().execute(auditInput); new AuditAction().execute(auditInput);
long end = System.currentTimeMillis(); long end = System.currentTimeMillis();
LOG.debug("Audit performance", logPair("auditLevel", String.valueOf(auditLevel)), logPair("recordCount", recordList.size()), logPair("millis", (end - start))); LOG.trace("Audit performance", logPair("auditLevel", String.valueOf(auditLevel)), logPair("recordCount", recordList.size()), logPair("millis", (end - start)));
} }
catch(Exception e) catch(Exception e)
{ {

View File

@ -123,7 +123,7 @@ public class QPossibleValueTranslator
return; return;
} }
LOG.debug("Translating possible values in [" + records.size() + "] records from the [" + table.getName() + "] table."); LOG.trace("Translating possible values in [" + records.size() + "] records from the [" + table.getName() + "] table.");
primePvsCache(table, records, queryJoins, limitedToFieldNames); primePvsCache(table, records, queryJoins, limitedToFieldNames);
for(QRecord record : records) for(QRecord record : records)
@ -378,11 +378,11 @@ public class QPossibleValueTranslator
for(String valueField : valueFields) for(String valueField : valueFields)
{ {
Object value = switch(valueField) Object value = switch(valueField)
{ {
case "id" -> id; case "id" -> id;
case "label" -> label; case "label" -> label;
default -> throw new IllegalArgumentException("Unexpected value field: " + valueField); default -> throw new IllegalArgumentException("Unexpected value field: " + valueField);
}; };
values.add(Objects.requireNonNullElse(value, "")); values.add(Objects.requireNonNullElse(value, ""));
} }
} }
@ -427,7 +427,7 @@ public class QPossibleValueTranslator
int size = entry.getValue().size(); int size = entry.getValue().size();
if(size > 50_000) if(size > 50_000)
{ {
LOG.debug("Found a big PVS cache - clearing it.", logPair("name", entry.getKey()), logPair("size", size)); LOG.info("Found a big PVS cache - clearing it.", logPair("name", entry.getKey()), logPair("size", size));
} }
} }
@ -483,7 +483,7 @@ public class QPossibleValueTranslator
{ {
if(limitedToFieldNames != null && !limitedToFieldNames.contains(fieldNamePrefix + field.getName())) if(limitedToFieldNames != null && !limitedToFieldNames.contains(fieldNamePrefix + field.getName()))
{ {
LOG.debug("Skipping cache priming for translation of possible value field [" + fieldNamePrefix + field.getName() + "] - it's not in the limitedToFieldNames set."); LOG.trace("Skipping cache priming for translation of possible value field [" + fieldNamePrefix + field.getName() + "] - it's not in the limitedToFieldNames set.");
continue; continue;
} }
@ -556,7 +556,7 @@ public class QPossibleValueTranslator
queryInput.setFieldsToTranslatePossibleValues(possibleValueFieldsToTranslate); queryInput.setFieldsToTranslatePossibleValues(possibleValueFieldsToTranslate);
} }
LOG.debug("Priming PVS cache for [" + page.size() + "] ids from [" + tableName + "] table."); LOG.trace("Priming PVS cache for [" + page.size() + "] ids from [" + tableName + "] table.");
QueryOutput queryOutput = new QueryAction().execute(queryInput); QueryOutput queryOutput = new QueryAction().execute(queryInput);
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////