Skip to content

Commit

Permalink
clarer debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Jan 29, 2024
1 parent bad85d6 commit 562ee46
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Source/GSSocketStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,20 @@ - (void) stream: (NSStream*)stream issuer: (NSString*)i owner: (NSString*)o;
#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;
}

Expand Down

0 comments on commit 562ee46

Please sign in to comment.