Commit 6d78066a authored by Andy Wilkinson's avatar Andy Wilkinson

Ensure that AWTError from image banner does not prevent app starting

Closes gh-6617
parent 5f7e9669
...@@ -75,9 +75,10 @@ public class ImageBanner implements Banner { ...@@ -75,9 +75,10 @@ public class ImageBanner implements Banner {
System.setProperty("java.awt.headless", "true"); System.setProperty("java.awt.headless", "true");
printBanner(environment, out); printBanner(environment, out);
} }
catch (Exception ex) { catch (Throwable ex) {
log.warn("Image banner not printable: " + this.image + " (" + ex.getClass() log.warn("Image banner not printable: " + this.image + " (" + ex.getClass()
+ ": '" + ex.getMessage() + "')", ex); + ": '" + ex.getMessage() + "')");
log.debug("Image banner printing failure", ex);
} }
finally { finally {
if (headless == null) { if (headless == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment