private boolean isLogConfigurationMessage ( Throwable ex ) { if ( ex instanceof InvocationTargetException ) { return isLogConfigurationMessage ( ex . getCause ( ) ) ; } String message = ex . getMessage ( ) ; if ( message != null ) { for ( String candidate : LOG_CONFIGURATION_MESSAGES ) { if ( message . contains ( candidate ) ) { return true ; } } } return false ; }
Check if the exception is a log configuration message i . e . the log call might not have actually output anything .