mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-19 01:50:49 +00:00
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:
parent
64abeac596
commit
2e858a3b55
1 changed files with 10 additions and 0 deletions
10
SQLClient.m
10
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
|
||||
|
|
Loading…
Reference in a new issue