Fixed http log file census for probing.
This commit is contained in:
parent
345ec7aba5
commit
18bed6289d
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ import java.util.Locale;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -218,7 +219,7 @@ public class HttpErrorLogAnalyzer
|
|||
String prefix = source.substring(0, source.length() - 1);
|
||||
for (File file : new File(prefix).getParentFile().listFiles())
|
||||
{
|
||||
if (file.getName().startsWith(prefix))
|
||||
if (file.getName().startsWith(FilenameUtils.getName(prefix)))
|
||||
{
|
||||
analyzer.probe(file);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue