add write error debug log

This commit is contained in:
rfm 2024-01-29 21:05:54 +00:00
parent 742d9fc843
commit bad85d69f7

View file

@ -460,6 +460,9 @@ 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)",
[tls ostream], e, strerror(e));
return -1;
}
NSDebugFLLog(@"NSStream", @"GSTLSPush to %p write %ld of %lu",
[tls ostream], (long)result, (unsigned long)len);