Skip to content

Commit

Permalink
Merge pull request #3 from TV4Fun/master
Browse files Browse the repository at this point in the history
Fix error logging
  • Loading branch information
UltimateDogg authored Mar 1, 2018
2 parents 3a698ca + 2b808c3 commit e505274
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 e505274

Please sign in to comment.