Browse Source

Fixed anonymize access log check.

master
Christian P. MOMON 5 months ago
parent
commit
d047d174c2
  1. 12
      src/fr/devinsy/logar/app/anonymizer/Anonymizer.java

12
src/fr/devinsy/logar/app/anonymizer/Anonymizer.java

@ -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)

Loading…
Cancel
Save