facebookincubator / SocketRocket

A conforming Objective-C WebSocket client library.
Other
9.56k stars 2.01k forks source link

Fixes debug logging #503

Closed feosuna1 closed 4 years ago

feosuna1 commented 7 years ago

It looks like SRDebugLog hasn't been used a in a while because uncommenting #define SR_DEBUG_LOG_ENABLED caused a bunch of compiler errors.

This change fixes up the use of SRDebugLog so that uncommenting #define SR_DEBUG_LOG_ENABLED will properly emit log statements.

Additionally, I added the NS_FORMAT attribute to SRErrorLog, which hints to the compiler that SRErrorLog has a format string parameter. This caused a few analyzer warnings that this PR also fixes.