Date: Tuesday, March 7, 2006 @ 12:18:57
  Author: gilles
    Path: /cvsroot/carob/carob/src

Modified: JavaSocket.cpp (1.45 -> 1.46)

Removed redundant log (put as debug)
Removed old commented code


----------------+
 JavaSocket.cpp |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)


Index: carob/src/JavaSocket.cpp
diff -u carob/src/JavaSocket.cpp:1.45 carob/src/JavaSocket.cpp:1.46
--- carob/src/JavaSocket.cpp:1.45       Fri Mar  3 16:01:13 2006
+++ carob/src/JavaSocket.cpp    Tue Mar  7 12:18:57 2006
@@ -131,16 +131,6 @@
   sockaddr_in addr = {0};
   // try
   std::string hostAsString = toString(host);
-#if 0
-  // FIXME catch conversion error/exception here
-  if (!wstringToString(hostAsString, host))
-  {
-    if (isErrorEnabled())
-      logError(fctName, host + L": unable to convert hostname to 
(small)string");
-    connected = false;
-    throw ConnectionException(L"Host string conversion failed");
-  }
-#endif
 
   int error = getaddrinfo(hostAsString.c_str(), NULL, NULL, &addressInfoList);
   
@@ -148,8 +138,8 @@
   {
     const char* gaiMsg = gai_strerror(error);
     wstring wMsg = fromString(gaiMsg);
-    if (isErrorEnabled())
-      logError(fctName, wMsg);
+    if (isDebugEnabled())
+      logDebug(fctName, wMsg);
     connected = false;
     throw ConnectionException(wMsg);
     return false;

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

Reply via email to