diff --git a/src/fr/devinsy/statoolinfos/core/Factory.java b/src/fr/devinsy/statoolinfos/core/Factory.java index 5c656f0..d6d5599 100644 --- a/src/fr/devinsy/statoolinfos/core/Factory.java +++ b/src/fr/devinsy/statoolinfos/core/Factory.java @@ -166,6 +166,8 @@ public class Factory { Federation result; + System.out.println("Loading federation " + inputURL); + if (inputURL == null) { throw new IllegalArgumentException("Null input URL."); @@ -243,6 +245,8 @@ public class Factory { Metrics result; + System.out.println("Loading metrics " + inputURL); + File inputFile = cache.restoreFile(inputURL); if (inputFile == null) @@ -284,6 +288,8 @@ public class Factory { Organization result; + System.out.println("Loading organization " + inputURL); + File inputFile = cache.restoreFile(inputURL); if (inputFile == null) @@ -352,6 +358,8 @@ public class Factory { Service result; + System.out.println("Loading service " + inputURL); + File inputFile = cache.restoreFile(inputURL); if (inputFile == null) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogAnalyzer.java b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogAnalyzer.java index e46a228..b23314d 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogAnalyzer.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogAnalyzer.java @@ -109,6 +109,7 @@ public class HttpAccessLogAnalyzer */ public void probe(final File file) throws IOException { + System.out.println("Probing file [" + file.getAbsolutePath() + "]"); LineIterator iterator = new LineIterator(file); while (iterator.hasNext()) { @@ -384,7 +385,7 @@ public class HttpAccessLogAnalyzer String prefix = source.substring(0, source.length() - 1); 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); }