private void doClose ( ) throws SQLException { try { if ( batch ) { doFlush ( ) ; } } finally { if ( lostCount > 0 ) { InternalLogger . log ( Level . ERROR , "Lost log entries due to broken database connection: " + lostCount ) ; } if ( connection != null ) { connection . close ( ) ; } } }
Unsynchronized method for closing database connection .