public static void logReadTaskException ( final Logger logger , final Task < Revision > task , final Exception e ) { if ( task != null ) { logger . logException ( Level . ERROR , "Error while reading a task: " + task . toString ( ) , e ) ; } else { logger . logException ( Level . ERROR , "Error while reading an unknown task" , e ) ; } }
Logs an occurance of an exception while reading a task .