Browse Source

Improved code.

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

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

@ -85,16 +85,7 @@ public final class Anonymizer
else
{
System.out.println("== Anonymize log for [" + source.getName() + "]");
boolean isAccessFile;
if (source.getName().contains("access"))
{
isAccessFile = true;
}
else
{
isAccessFile = false;
}
boolean isAccessFile = source.getName().contains("access");
File target;
if (source.getName().endsWith(".log.gz"))
@ -137,6 +128,12 @@ 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