Skip to content

Commit

Permalink
Print the status/exception if no logger is avialable
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Jun 28, 2023
1 parent 3c3ce08 commit bfc1919
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public Bundle getBundle() {
public void log(final IStatus status) {
if (logger == null) {
// can happen on system shutdown...
System.out.println(status);
Throwable exception = status.getException();
if (exception != null) {
exception.printStackTrace(System.out);
}
return;
}
// Log to the logger
Expand Down

0 comments on commit bfc1919

Please sign in to comment.