Skip to content
Snippets Groups Projects
Commit 5194868a authored by Florian Angerer's avatar Florian Angerer
Browse files

Logging during required to parse a file.

parent e1de27b7
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,13 @@ public class FileTreeWalker {
lfParser.addDetector(ConfigureErrorDetector.INSTANCE);
lfParser.addTestResultDetector(DiffDetector.INSTANCE);
long startTime = System.currentTimeMillis();
LogFile parseLogFile = lfParser.parseLogFile();
Collection<Problem> problems = parseLogFile.collectProblems();
pkgTestRun.setSuccess(parseLogFile.isSuccess());
pkgTestRun.setLogFile(parseLogFile.getPath());
long endTime = System.currentTimeMillis();
LOGGER.info(String.format("Finished in %d seconds", (endTime - startTime) / 1000L));
// log problems
LOGGER.fine("Overall test result: " + (pkgTestRun.isSuccess() ? "OK" : "FAILED"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment