mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
|
#else
|
||||||
errno = e; // Not thread-safe
|
errno = e; // Not thread-safe
|
||||||
#endif
|
#endif
|
||||||
NSDebugFLLog(@"NSStream", @"GSTLSPush to %p error %d (%s)",
|
NSDebugFLLog(@"NSStream", @"GSTLSPush write for %p error %d (%s)",
|
||||||
[tls ostream], e, strerror(e));
|
[tls ostream], e, strerror(e));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
NSDebugFLLog(@"NSStream", @"GSTLSPush to %p write %ld of %lu",
|
if (len != result)
|
||||||
[tls ostream], (long)result, (unsigned long)len);
|
{
|
||||||
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue