From 2e858a3b556aa4a424f8c36984bf17ebafe0bff3 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Tue, 2 Jun 2009 17:20:00 +0000 Subject: [PATCH] Improve debug logging git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@28319 72102866-910b-0410-8b05-ffd578937521 --- SQLClient.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SQLClient.m b/SQLClient.m index f242362..3410e12 100644 --- a/SQLClient.m +++ b/SQLClient.m @@ -2932,6 +2932,11 @@ static unsigned int maxConnections = 8; } NS_HANDLER { + if ([_db debugging] > 0) + { + [_db debug: @"Initial failure executing batch %@: %@", + self, localException]; + } if (_batch == YES) { unsigned count = [_info count]; @@ -2965,6 +2970,11 @@ static unsigned int maxConnections = 8; } NS_HANDLER { + if ([_db debugging] > 0) + { + [_db debug: @"Failure of %d executing batch %@: %@", + i, self, localException]; + } success = NO; } NS_ENDHANDLER