Skip to content

Commit

Permalink
Fix error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Croteau committed Feb 28, 2018
1 parent 2ca0e90 commit 2b808c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ public void execute() throws MojoExecutionException {
BufferedReader stderr = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
while (!pr.waitFor(100, TimeUnit.MILLISECONDS)) {
stdout.lines().forEachOrdered(line -> getLog().debug(line));
stderr.lines().forEachOrdered(line -> getLog().warn(line));
stderr.lines().forEachOrdered(this::logErrorOrWarning);
}

stdout.lines().forEachOrdered(line -> getLog().debug(line));
stderr.lines().forEachOrdered(line -> getLog().warn(line));
stderr.lines().forEachOrdered(this::logErrorOrWarning);

int exitCode = pr.exitValue();
if (exitCode != 0) {
Expand Down

0 comments on commit 2b808c3

Please sign in to comment.