Merge branch 'RED-8652-adjust-log-level' into 'master'

Resolve RED-8652 "Adjust log level"

Closes RED-8652

See merge request redactmanager/redaction-report-service!56
This commit is contained in:
Sinan Ta 2024-03-05 15:21:02 +01:00
commit cb35f50915

View File

@ -126,7 +126,7 @@ public class EntityLogConverterService {
if (settings.getMaxRedactionEntryValueLength() > 0 && entry.getValue() != null && entry.getValue().length() > settings.getMaxRedactionEntryValueLength()) { if (settings.getMaxRedactionEntryValueLength() > 0 && entry.getValue() != null && entry.getValue().length() > settings.getMaxRedactionEntryValueLength()) {
entry.setValue(entry.getValue().substring(0, settings.getMaxRedactionEntryValueLength()) + "..."); entry.setValue(entry.getValue().substring(0, settings.getMaxRedactionEntryValueLength()) + "...");
log.warn("Truncated value in dossier {}, file {} on pages {} to {} chars", log.info("Truncated value in dossier {}, file {} on pages {} to {} chars",
dossierId, dossierId,
fileId, fileId,
entry.getPositions() entry.getPositions()
@ -138,7 +138,7 @@ public class EntityLogConverterService {
if (settings.getMaxSectionLength() > 0 && entry.getSection() != null && entry.getSection().length() > settings.getMaxSectionLength()) { if (settings.getMaxSectionLength() > 0 && entry.getSection() != null && entry.getSection().length() > settings.getMaxSectionLength()) {
entry.setSection(entry.getSection().substring(0, settings.getMaxSectionLength()) + "..."); entry.setSection(entry.getSection().substring(0, settings.getMaxSectionLength()) + "...");
log.warn("Truncated section in dossier {}, file {} on pages {} to {} chars", log.info("Truncated section in dossier {}, file {} on pages {} to {} chars",
dossierId, dossierId,
fileId, fileId,
entry.getPositions() entry.getPositions()