public void logExceptionAndSetInconsistency ( String message , Throwable e ) throws IOException { setInconsistency ( ) ; // The ThreadLocal has been initialized so we know that we are in multithreaded mode. if ( reportContext . get ( ) != null ) { reportContext . get ( ) . addLogException ( message , e ) ; } else { writeException ( message , e ) ; } }
Adds exception with full stack trace .