mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
clarer debug log
This commit is contained in:
parent
bad85d69f7
commit
562ee46118
1 changed files with 11 additions and 3 deletions
|
@ -460,12 +460,20 @@ GSTLSPush(gnutls_transport_ptr_t handle, const void *buffer, size_t len)
|
|||
#else
|
||||
errno = e; // Not thread-safe
|
||||
#endif
|
||||
NSDebugFLLog(@"NSStream", @"GSTLSPush to %p error %d (%s)",
|
||||
NSDebugFLLog(@"NSStream", @"GSTLSPush write for %p error %d (%s)",
|
||||
[tls ostream], e, strerror(e));
|
||||
return -1;
|
||||
}
|
||||
NSDebugFLLog(@"NSStream", @"GSTLSPush to %p write %ld of %lu",
|
||||
[tls ostream], (long)result, (unsigned long)len);
|
||||
if (len != result)
|
||||
{
|
||||
NSDebugFLLog(@"NSStream", @"GSTLSPush write for %p of %ld (tried %lu)",
|
||||
[tls ostream], (long)result, (unsigned long)len);
|
||||
}
|
||||
else
|
||||
{
|
||||
NSDebugFLLog(@"NSStream", @"GSTLSPush write for %p of %ld",
|
||||
[tls ostream], (long)result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue