Date: Friday, May 4, 2007 @ 12:22:54
  Author: marc
    Path: /cvsroot/carob/libmysequoia/src

Modified: CarobMySQL.cpp (1.105 -> 1.106)

Increased log level of connection errors from DEBUG to WARN. Increased
success from DEBUG to INFO.


----------------+
 CarobMySQL.cpp |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)


Index: libmysequoia/src/CarobMySQL.cpp
diff -u libmysequoia/src/CarobMySQL.cpp:1.105 
libmysequoia/src/CarobMySQL.cpp:1.106
--- libmysequoia/src/CarobMySQL.cpp:1.105       Wed Apr  4 17:09:37 2007
+++ libmysequoia/src/CarobMySQL.cpp     Fri May  4 12:22:54 2007
@@ -123,7 +123,7 @@
   if (mysqlPtr->status != MYSQL_STATUS_READY)
   {
     set_error(CR_COMMANDS_OUT_OF_SYNC, SQLT_UNKNOWN);
-    LOG4CXX_DEBUG(logger, "Leaving connect: command out of sync");
+    LOG4CXX_WARN(logger, "Leaving connect: command out of sync");
     return false;
   }
 
@@ -141,7 +141,7 @@
     if (!user || !*user)
     {
       set_error(CR_NULL_POINTER, SQLT_UNKNOWN);
-      LOG4CXX_DEBUG(logger, "Leaving connect: user name missing.");
+      LOG4CXX_WARN(logger, "Leaving connect: user name missing.");
       return false;
     }
   }
@@ -187,7 +187,7 @@
         delete_connection();
         set_connect_info(host, user, passwd, 0, port);
     
-        LOG4CXX_DEBUG(logger, "Leaving connect: delayed connection.");
+        LOG4CXX_INFO(logger, "Leaving connect: delayed connection.");
         return true;
       }
     }
@@ -231,34 +231,34 @@
           real_query(iter->data(), iter->length());
       }
   
-      LOG4CXX_DEBUG(logger, "Leaving connect.");
+      LOG4CXX_DEBUG(logger, "Leaving connect: completed successfully");
       return true;
     } 
     catch (BackendException &e)
     {
       set_error(e);
-      LOG4CXX_DEBUG(logger, "Leaving connect: backend exception.");
+      LOG4CXX_WARN(logger, "Leaving connect: backend exception.");
       return false;
     }
     catch (CarobException &e)
     {
       set_error(e.getErrorCode(), from_wstring(e.description()).c_str(), 
from_wstring(e.getSQLState()).c_str());
       //TODO error handling
-      LOG4CXX_DEBUG(logger, "Leaving connect: carob exception.");
+      LOG4CXX_WARN(logger, "Leaving connect: carob exception.");
       return false;
     }
     catch (HostTokenizerException &e)
     {
       set_error(0, e.description().c_str(), error_sqlstate[SQLT_UNKNOWN]);
       //TODO error handling
-      LOG4CXX_DEBUG(logger, "Leaving connect: host tokenizer exception.");
+      LOG4CXX_WARN(logger, "Leaving connect: host tokenizer exception.");
       return false;
     }
   }
   catch (ConverterException &e)
   {
     set_error(0, e.description().c_str(), error_sqlstate[SQLT_UNKNOWN]);
-    LOG4CXX_DEBUG(logger, "Leaving connect: converter exception.");
+    LOG4CXX_WARN(logger, "Leaving connect: converter exception.");
     return false;
   }
 }

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to