Skip to content

Commit

Permalink
Improve logs to help discerning what is being looked for and where
Browse files Browse the repository at this point in the history
  • Loading branch information
chipironcin authored and Jorge Marin committed Jul 5, 2018
1 parent 793fa8b commit f4e0c0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void findText(Run<?, ?> run, FilePath workspace, TaskListener listener)
boolean foundText = false;

if (alsoCheckConsoleOutput) {
logger.println("Checking console output");
logger.println("Looking for pattern " + "'" + regexp + "'" + " in the console output");
foundText |=
checkFile(
run.getLogFile(),
Expand All @@ -140,7 +140,7 @@ private void findText(Run<?, ?> run, FilePath workspace, TaskListener listener)
// printing this when checking console output will cause the plugin
// to find this line, which would be pointless.
// doing this only when fileSet!=null to avoid
logger.println("Checking " + regexp);
logger.println("Looking for pattern " + "'" + regexp + "'" + " in the file " + "'" + build.getLogFile() + "'");
}

final RemoteOutputStream ros = new RemoteOutputStream(logger);
Expand Down

0 comments on commit f4e0c0d

Please sign in to comment.