Improve debug logging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@28319 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-06-02 17:20:00 +00:00
parent 64abeac596
commit 2e858a3b55

View file

@ -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