File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 15
15
import org .jboss .logging .annotations .MessageLogger ;
16
16
import org .jboss .logging .annotations .ValidIdRange ;
17
17
18
- import static org .jboss .logging .Logger .Level .ERROR ;
19
18
import static org .jboss .logging .Logger .Level .INFO ;
19
+ import static org .jboss .logging .Logger .Level .WARN ;
20
20
21
21
/**
22
22
* Sub-system logging related to JDBC batch execution
@@ -35,11 +35,7 @@ public interface JdbcBatchLogging extends BasicLogger {
35
35
Logger BATCH_LOGGER = Logger .getLogger ( NAME );
36
36
JdbcBatchLogging BATCH_MESSAGE_LOGGER = Logger .getMessageLogger ( JdbcBatchLogging .class , NAME );
37
37
38
- @ LogMessage (level = ERROR )
39
- @ Message (id = 100501 , value = "Exception executing batch [%s], SQL: %s" )
40
- void unableToExecuteBatch (Exception e , String sql );
41
-
42
- @ LogMessage (level = ERROR )
38
+ @ LogMessage (level = WARN )
43
39
@ Message (id = 100502 , value = "Unable to release batch statement..." )
44
40
void unableToReleaseBatchStatement ();
45
41
Original file line number Diff line number Diff line change @@ -290,12 +290,10 @@ protected void performExecution() {
290
290
}
291
291
catch (SQLException e ) {
292
292
abortBatch ( e );
293
- BATCH_MESSAGE_LOGGER .unableToExecuteBatch ( e , sql );
294
293
throw sqlExceptionHelper .convert ( e , "could not execute batch" , sql );
295
294
}
296
295
catch (RuntimeException re ) {
297
296
abortBatch ( re );
298
- BATCH_MESSAGE_LOGGER .unableToExecuteBatch ( re , sql );
299
297
throw re ;
300
298
}
301
299
} );
You can’t perform that action at this time.
0 commit comments