Skip to content

Commit

Permalink
HAP-1169 - Error logs not always printed (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Mar 31, 2019
1 parent 547b38f commit 2ba38cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/jfrog/hudson/util/JenkinsBuildInfoLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ public void warn(String message) {
public void error(String message) {
listener.getLogger().println(message);
logger.severe(message);
listener.getLogger().flush();
}

public void error(String message, Throwable e) {
listener.getLogger().println(message);
logger.log(Level.SEVERE, message, e);
listener.getLogger().flush();
}
}

0 comments on commit 2ba38cf

Please sign in to comment.