private Object formatVerboseObj ( Object obj ) { // Make sure that we don't truncate any stack traces during verbose logging if ( obj instanceof TruncatableThrowable ) { TruncatableThrowable truncatable = ( TruncatableThrowable ) obj ; final Throwable wrappedException = truncatable . getWrappedException ( ) ; return DataFormatHelper . throwableToString ( wrappedException ) ; } else if ( obj instanceof Throwable ) { return DataFormatHelper . throwableToString ( ( Throwable ) obj ) ; } return null ; }
Format an object for a verbose message .