Date: Friday, March 16, 2007 @ 15:22:07
Author: marc
Path: /cvsroot/carob/libmysequoia/src
Modified: MySQLAPI.cpp (1.67 -> 1.68)
Logging CAROB_VERSION in mysql_server_init
--------------+
MySQLAPI.cpp | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
Index: libmysequoia/src/MySQLAPI.cpp
diff -u libmysequoia/src/MySQLAPI.cpp:1.67 libmysequoia/src/MySQLAPI.cpp:1.68
--- libmysequoia/src/MySQLAPI.cpp:1.67 Thu Feb 8 14:13:34 2007
+++ libmysequoia/src/MySQLAPI.cpp Fri Mar 16 15:22:07 2007
@@ -26,6 +26,7 @@
/* Carob include */
#include <Common.hpp>
+#include <CarobVersion.hpp>
/* MySQL include */
#include <mysql_wrapper.h>
@@ -46,6 +47,10 @@
#include <string>
#include <fstream>
+// need two steps to delay expansion of argument
+#define STRINGIFY(x) #x
+#define TOSTRING(x) STRINGIFY(x)
+
using namespace log4cxx;
using namespace log4cxx::helpers;
@@ -187,8 +192,11 @@
LOG4CXX_DEBUG(logger, "Entering mysql_server_init: argc=" << argc << "
argv=" << argv << " groups=" << groups);
- CarobNS::setLogLevel(CarobNS::LOG_LEVEL_OFF);
-
+ // Not a real a warning, but we really want this printed
+ LOG4CXX_WARN(logger, "compiled with Carob version " TOSTRING(CAROB_VERSION));
+
+ CarobNS::setLogLevel(CarobNS::LOG_LEVEL_OFF); // See LMS-39
+
tzset();
library_initialized = true;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits