Skip to content
Snippets Groups Projects
Commit f954616b authored by brinn's avatar brinn
Browse files

Only log switching off database connection logging when it was actually switched on before.

SVN: 27597
parent 1cd6d334
No related branches found
No related tags found
No related merge requests found
...@@ -116,12 +116,15 @@ class MonitoringPoolingDataSource extends PoolingDataSource ...@@ -116,12 +116,15 @@ class MonitoringPoolingDataSource extends PoolingDataSource
} }
} else } else
{ {
logConnection = false; if (logConnection)
if (machineLog.isInfoEnabled())
{ {
machineLog.info(String.format( logConnection = false;
"Switch off database connection logging: %d <= %d", if (machineLog.isInfoEnabled())
numActive, activeConnectionsLogThreshold)); {
machineLog.info(String.format(
"Switch off database connection logging: %d <= %d",
numActive, activeConnectionsLogThreshold));
}
} }
} }
if ((activeConnectionsLogInterval > 0) if ((activeConnectionsLogInterval > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment