clarer debug log

This commit is contained in:
rfm 2024-01-29 21:24:31 +00:00
parent bad85d69f7
commit 562ee46118

View file

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