Fixed anonymize access log check.

This commit is contained in:
Christian P. MOMON 2021-04-26 01:31:39 +02:00
parent 3b47296cf4
commit d047d174c2

View File

@ -118,6 +118,12 @@ public final class Anonymizer
// logger.info("anon=[{}][{}][{}]", anon.getIp(),
// anon.getUser(), anon.getDatetime());
// logger.info("anon={}", anon);
// Make a check.
if (StringUtils.equals(line, anon.getLine()))
{
System.err.println("Anonymize failed detected: " + line);
}
}
else
{
@ -126,12 +132,6 @@ public final class Anonymizer
anon = anonymizeError(log);
}
// Make a check.
if (StringUtils.equals(line, anon.getLine()))
{
System.err.println("Anonymize failed detected: " + line);
}
out.println(anon);
}
catch (IllegalArgumentException exception)