Avoid log statements between resource opening and returning
Issue: SPR-17559
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -115,7 +115,6 @@ public abstract class DataSourceUtils {
|
||||
Connection con = fetchConnection(dataSource);
|
||||
|
||||
if (TransactionSynchronizationManager.isSynchronizationActive()) {
|
||||
logger.debug("Registering transaction synchronization for JDBC Connection");
|
||||
// Use same Connection for further JDBC actions within the transaction.
|
||||
// Thread-bound object will get removed by synchronization at transaction completion.
|
||||
ConnectionHolder holderToUse = conHolder;
|
||||
@@ -337,7 +336,6 @@ public abstract class DataSourceUtils {
|
||||
return;
|
||||
}
|
||||
}
|
||||
logger.debug("Returning JDBC Connection to DataSource");
|
||||
doCloseConnection(con, dataSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user