Author: rfm
Date: Wed Nov  4 10:32:40 2015
New Revision: 39142

URL: http://svn.gna.org/viewcvs/gnustep?rev=39142&view=rev
Log:
tweak

Modified:
    libs/sqlclient/trunk/SQLClientPool.m

Modified: libs/sqlclient/trunk/SQLClientPool.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClientPool.m?rev=39142&r1=39141&r2=39142&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClientPool.m        (original)
+++ libs/sqlclient/trunk/SQLClientPool.m        Wed Nov  4 10:32:40 2015
@@ -762,16 +762,19 @@
            * so we must therefore re-lock with condition 1.
            */
           cond = 1;
-          if (nil == retainInfo)
-            {
-              retainInfo = [NSMutableString stringWithCapacity: 100];
-            }
-          [retainInfo appendFormat:
-            @"  Client '%@' (retain count %"PRIuPTR
-            @") %s pool %s connected to server\n",
-            [client name], rc,
-            ((_items[index].u > 0) ? "taken from" : "available in"),
-            ((YES == connected) ? "and" : "but not")];
+          if (_debugging > 0)
+            {
+              if (nil == retainInfo)
+                {
+                  retainInfo = [NSMutableString stringWithCapacity: 100];
+                }
+              [retainInfo appendFormat:
+                @"  Client '%@' (retain count %"PRIuPTR
+                @") %s pool %s connected to server\n",
+                [client name], rc,
+                ((_items[index].u > 0) ? "taken from" : "available in"),
+                ((YES == connected) ? "and" : "but not")];
+            }
           if (YES == connected)
             {
               /* Still connected, so we count it as a free connection.


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to