Improved out message in probing and htmlize.

This commit is contained in:
Christian P. MOMON 2021-05-25 15:05:39 +02:00
parent 078a6909a5
commit 6b4611f3b2
2 changed files with 10 additions and 1 deletions

View file

@ -166,6 +166,8 @@ public class Factory
{ {
Federation result; Federation result;
System.out.println("Loading federation " + inputURL);
if (inputURL == null) if (inputURL == null)
{ {
throw new IllegalArgumentException("Null input URL."); throw new IllegalArgumentException("Null input URL.");
@ -243,6 +245,8 @@ public class Factory
{ {
Metrics result; Metrics result;
System.out.println("Loading metrics " + inputURL);
File inputFile = cache.restoreFile(inputURL); File inputFile = cache.restoreFile(inputURL);
if (inputFile == null) if (inputFile == null)
@ -284,6 +288,8 @@ public class Factory
{ {
Organization result; Organization result;
System.out.println("Loading organization " + inputURL);
File inputFile = cache.restoreFile(inputURL); File inputFile = cache.restoreFile(inputURL);
if (inputFile == null) if (inputFile == null)
@ -352,6 +358,8 @@ public class Factory
{ {
Service result; Service result;
System.out.println("Loading service " + inputURL);
File inputFile = cache.restoreFile(inputURL); File inputFile = cache.restoreFile(inputURL);
if (inputFile == null) if (inputFile == null)

View file

@ -109,6 +109,7 @@ public class HttpAccessLogAnalyzer
*/ */
public void probe(final File file) throws IOException public void probe(final File file) throws IOException
{ {
System.out.println("Probing file [" + file.getAbsolutePath() + "]");
LineIterator iterator = new LineIterator(file); LineIterator iterator = new LineIterator(file);
while (iterator.hasNext()) while (iterator.hasNext())
{ {
@ -384,7 +385,7 @@ public class HttpAccessLogAnalyzer
String prefix = source.substring(0, source.length() - 1); String prefix = source.substring(0, source.length() - 1);
for (File file : new File(prefix).getParentFile().listFiles()) for (File file : new File(prefix).getParentFile().listFiles())
{ {
if (file.getName().startsWith(FilenameUtils.getBaseName(prefix))) if (file.getName().startsWith(FilenameUtils.getName(prefix)))
{ {
analyzer.probe(file); analyzer.probe(file);
} }