Ensure that AWTError from image banner does not prevent app starting

Closes gh-6617
This commit is contained in:
Andy Wilkinson 2016-08-16 15:02:11 +01:00
parent 5f7e966955
commit 6d78066a3a
1 changed files with 3 additions and 2 deletions

View File

@ -75,9 +75,10 @@ public class ImageBanner implements Banner {
System.setProperty("java.awt.headless", "true");
printBanner(environment, out);
}
catch (Exception ex) {
catch (Throwable ex) {
log.warn("Image banner not printable: " + this.image + " (" + ex.getClass()
+ ": '" + ex.getMessage() + "')", ex);
+ ": '" + ex.getMessage() + "')");
log.debug("Image banner printing failure", ex);
}
finally {
if (headless == null) {