Revised log levels: less WARN and INFO, fine-tuned DEBUG vs TRACE
Issue: SPR-16946
This commit is contained in:
@@ -154,8 +154,8 @@ public class SingleConnectionFactory extends DelegatingConnectionFactory impleme
|
||||
}
|
||||
this.target = doCreateConnection();
|
||||
prepareConnection(this.target);
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Established shared CCI Connection: " + this.target);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Established shared CCI Connection: " + this.target);
|
||||
}
|
||||
this.connection = getCloseSuppressingConnectionProxy(this.target);
|
||||
}
|
||||
|
||||
@@ -164,8 +164,8 @@ public class SpringContextResourceAdapter implements ResourceAdapter {
|
||||
*/
|
||||
@Override
|
||||
public void start(BootstrapContext bootstrapContext) throws ResourceAdapterInternalException {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Starting SpringContextResourceAdapter with BootstrapContext: " + bootstrapContext);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Starting SpringContextResourceAdapter with BootstrapContext: " + bootstrapContext);
|
||||
}
|
||||
this.applicationContext = createApplicationContext(bootstrapContext);
|
||||
}
|
||||
@@ -211,7 +211,7 @@ public class SpringContextResourceAdapter implements ResourceAdapter {
|
||||
*/
|
||||
@Override
|
||||
public void stop() {
|
||||
logger.info("Stopping SpringContextResourceAdapter");
|
||||
logger.debug("Stopping SpringContextResourceAdapter");
|
||||
if (this.applicationContext != null) {
|
||||
this.applicationContext.close();
|
||||
}
|
||||
|
||||
@@ -497,8 +497,8 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
protected void checkUserTransactionAndTransactionManager() throws IllegalStateException {
|
||||
// We at least need the JTA UserTransaction.
|
||||
if (this.userTransaction != null) {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Using JTA UserTransaction: " + this.userTransaction);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Using JTA UserTransaction: " + this.userTransaction);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -508,8 +508,8 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
|
||||
// For transaction suspension, the JTA TransactionManager is necessary too.
|
||||
if (this.transactionManager != null) {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Using JTA TransactionManager: " + this.transactionManager);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Using JTA TransactionManager: " + this.transactionManager);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -542,8 +542,8 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
}
|
||||
|
||||
if (this.transactionSynchronizationRegistry != null) {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Using JTA TransactionSynchronizationRegistry: " + this.transactionSynchronizationRegistry);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Using JTA TransactionSynchronizationRegistry: " + this.transactionSynchronizationRegistry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
@@ -117,7 +117,7 @@ public class WebLogicJtaTransactionManager extends JtaTransactionManager {
|
||||
protected UserTransaction retrieveUserTransaction() throws TransactionSystemException {
|
||||
Object helper = loadWebLogicTransactionHelper();
|
||||
try {
|
||||
logger.debug("Retrieving JTA UserTransaction from WebLogic TransactionHelper");
|
||||
logger.trace("Retrieving JTA UserTransaction from WebLogic TransactionHelper");
|
||||
Method getUserTransactionMethod = helper.getClass().getMethod("getUserTransaction");
|
||||
return (UserTransaction) getUserTransactionMethod.invoke(this.transactionHelper);
|
||||
}
|
||||
@@ -136,7 +136,7 @@ public class WebLogicJtaTransactionManager extends JtaTransactionManager {
|
||||
protected TransactionManager retrieveTransactionManager() throws TransactionSystemException {
|
||||
Object helper = loadWebLogicTransactionHelper();
|
||||
try {
|
||||
logger.debug("Retrieving JTA TransactionManager from WebLogic TransactionHelper");
|
||||
logger.trace("Retrieving JTA TransactionManager from WebLogic TransactionHelper");
|
||||
Method getTransactionManagerMethod = helper.getClass().getMethod("getTransactionManager");
|
||||
return (TransactionManager) getTransactionManagerMethod.invoke(this.transactionHelper);
|
||||
}
|
||||
@@ -158,7 +158,7 @@ public class WebLogicJtaTransactionManager extends JtaTransactionManager {
|
||||
Method getTransactionHelperMethod = transactionHelperClass.getMethod("getTransactionHelper");
|
||||
helper = getTransactionHelperMethod.invoke(null);
|
||||
this.transactionHelper = helper;
|
||||
logger.debug("WebLogic TransactionHelper found");
|
||||
logger.trace("WebLogic TransactionHelper found");
|
||||
}
|
||||
catch (InvocationTargetException ex) {
|
||||
throw new TransactionSystemException(
|
||||
@@ -180,16 +180,16 @@ public class WebLogicJtaTransactionManager extends JtaTransactionManager {
|
||||
if (this.weblogicUserTransactionAvailable) {
|
||||
this.beginWithNameMethod = userTransactionClass.getMethod("begin", String.class);
|
||||
this.beginWithNameAndTimeoutMethod = userTransactionClass.getMethod("begin", String.class, int.class);
|
||||
logger.info("Support for WebLogic transaction names available");
|
||||
logger.debug("Support for WebLogic transaction names available");
|
||||
}
|
||||
else {
|
||||
logger.info("Support for WebLogic transaction names not available");
|
||||
logger.debug("Support for WebLogic transaction names not available");
|
||||
}
|
||||
|
||||
// Obtain WebLogic ClientTransactionManager interface.
|
||||
Class<?> transactionManagerClass =
|
||||
getClass().getClassLoader().loadClass(CLIENT_TRANSACTION_MANAGER_CLASS_NAME);
|
||||
logger.debug("WebLogic ClientTransactionManager found");
|
||||
logger.trace("WebLogic ClientTransactionManager found");
|
||||
|
||||
this.weblogicTransactionManagerAvailable = transactionManagerClass.isInstance(getTransactionManager());
|
||||
if (this.weblogicTransactionManagerAvailable) {
|
||||
@@ -199,7 +199,7 @@ public class WebLogicJtaTransactionManager extends JtaTransactionManager {
|
||||
logger.debug("Support for WebLogic forceResume available");
|
||||
}
|
||||
else {
|
||||
logger.warn("Support for WebLogic forceResume not available");
|
||||
logger.debug("Support for WebLogic forceResume not available");
|
||||
}
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
Reference in New Issue
Block a user