Date: Tuesday, February 6, 2007 @ 15:57:34
Author: marc
Path: /cvsroot/carob/carob/test
Modified: ConnectionSetup.cpp (1.20 -> 1.21)
More appropriate log levels when failing to re-use connection
---------------------+
ConnectionSetup.cpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Index: carob/test/ConnectionSetup.cpp
diff -u carob/test/ConnectionSetup.cpp:1.20 carob/test/ConnectionSetup.cpp:1.21
--- carob/test/ConnectionSetup.cpp:1.20 Tue Feb 6 14:48:42 2007
+++ carob/test/ConnectionSetup.cpp Tue Feb 6 15:57:34 2007
@@ -73,13 +73,15 @@
if (lastConnection != NULL
&& ! lastConnection->isClosed())
{
- logInfo(fctName, L"reusing lastConnection");
+ logInfo(fctName, L"re-using lastConnection");
connectionPtr = lastConnection;
return; // reuse success
}
- else // reuse failed: reconnect
- logInfo(fctName, std::wstring(L"lastConnection was ")
- + (lastConnection ? L"closed" : L"NULL"));
+ // reuse failed: fallback to reconnect below
+ else if (lastConnection == NULL)
+ logWarn(fctName, L"failed to re-use lastConnection, was NULL");
+ else
+ logError(fctName, L"failed to re-use lastConnection, was closed");
}
std::vector<ControllerInfo> ctrls;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits