Ensure that AWTError from image banner does not prevent app starting
Closes gh-6617
This commit is contained in:
parent
5f7e966955
commit
6d78066a3a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue