mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 02:41:07 +00:00
Send verbose alerts through alert method rather than NSLog() as NSLog has
high overheads (immediate write etc). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@21874 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
83698cd86e
commit
27edbc7c82
1 changed files with 5 additions and 5 deletions
10
WebServer.m
10
WebServer.m
|
@ -1247,7 +1247,7 @@ escapeData(const unsigned char* bytes, unsigned length, NSMutableData *d)
|
|||
[hdl readInBackgroundAndNotify];
|
||||
if (_verbose == YES && [_quiet containsObject: a] == NO)
|
||||
{
|
||||
NSLog(@"%@ connect", session);
|
||||
[self _alert: @"%@ connect", session];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1551,7 +1551,7 @@ escapeData(const unsigned char* bytes, unsigned length, NSMutableData *d)
|
|||
{
|
||||
if (_verbose == YES && [_quiet containsObject: [session address]] == NO)
|
||||
{
|
||||
NSLog(@"%@ reset", session);
|
||||
[self _alert: @"%@ reset", session];
|
||||
}
|
||||
[session reset];
|
||||
[hdl readInBackgroundAndNotify]; // Want another request.
|
||||
|
@ -1566,7 +1566,7 @@ escapeData(const unsigned char* bytes, unsigned length, NSMutableData *d)
|
|||
{
|
||||
if (_verbose == YES)
|
||||
{
|
||||
NSLog(@"%@ disconnect", session);
|
||||
[self _alert: @"%@ disconnect", session];
|
||||
}
|
||||
_handled++;
|
||||
}
|
||||
|
@ -1660,7 +1660,7 @@ escapeData(const unsigned char* bytes, unsigned length, NSMutableData *d)
|
|||
_requests++;
|
||||
if (_verbose == YES)
|
||||
{
|
||||
NSLog(@"Request %@ - %@", session, request);
|
||||
[self _alert: @"Request %@ - %@", session, request];
|
||||
}
|
||||
}
|
||||
NS_DURING
|
||||
|
@ -1769,7 +1769,7 @@ escapeData(const unsigned char* bytes, unsigned length, NSMutableData *d)
|
|||
}
|
||||
if (_verbose == YES && [_quiet containsObject: [session address]] == NO)
|
||||
{
|
||||
NSLog(@"Response %@ - %@", session, out);
|
||||
[self _alert: @"Response %@ - %@", session, out];
|
||||
}
|
||||
[[session handle] writeInBackgroundAndNotify: out];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue