Date: Friday, October 6, 2006 @ 17:31:19
Author: gilles
Path: /cvsroot/carob/carob/test
Modified: CarobTestLauncher.cpp (1.34 -> 1.35)
(mingw code only)
Set log level before logging anything (!)
Fixed log message
-----------------------+
CarobTestLauncher.cpp | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
Index: carob/test/CarobTestLauncher.cpp
diff -u carob/test/CarobTestLauncher.cpp:1.34
carob/test/CarobTestLauncher.cpp:1.35
--- carob/test/CarobTestLauncher.cpp:1.34 Thu Sep 21 10:21:11 2006
+++ carob/test/CarobTestLauncher.cpp Fri Oct 6 17:31:19 2006
@@ -61,11 +61,18 @@
// Set up a simple configuration that logs on the console.
log4cxx::BasicConfigurator::configure();
#endif
+
+ // Log Level:
+ // available levels are found in log4cxx documentation
+ // or in file include/Common.hpp
+ //setLogLevel(LOG_LEVEL_DEBUG);
+ setLogLevel(LOG_LEVEL_OFF);
+
#ifdef __MINGW32__
//init windows socket lib
WSADATA WSAData;
if (isInfoEnabled())
- logInfo(L"read_example", L"Initializing windows socket library");
+ logInfo(L"Carob unit tests", L"Initializing windows socket library");
if (WSAStartup(MAKEWORD(2,0), &WSAData) != 0)
{
if (isErrorEnabled())
@@ -74,10 +81,6 @@
return false;
}
#endif
- // available levels are found in log4cxx documentation
- // or in file include/Common.hpp
- //setLogLevel(LOG_LEVEL_DEBUG);
- setLogLevel(LOG_LEVEL_OFF);
std::set_unexpected(UnexpectedException::convertUnexpected);
CppUnit::TextUi::TestRunner runner;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits