Andy Mroczkowski

Adding configurable ASI_DEBUG_LOG macro

see ASIHTTPRequestConfig.h for additional information
... ... @@ -207,7 +207,7 @@
[super buildPostBody];
#if DEBUG_FORM_DATA_REQUEST
NSLog(@"%@",[self debugBodyString]);
ASI_DEBUG_LOG(@"%@",[self debugBodyString]);
[self setDebugBodyString:nil];
#endif
}
... ...
This diff is collapsed. Click to expand it.
... ... @@ -11,6 +11,12 @@
// Debug output configuration options
// ======
// If defined will use the specified function for debug logging
// Otherwise use NSLog
#ifndef ASI_DEBUG_LOG
#define ASI_DEBUG_LOG NSLog
#endif
// When set to 1 ASIHTTPRequests will print information about what a request is doing
#ifndef DEBUG_REQUEST_STATUS
#define DEBUG_REQUEST_STATUS 0
... ... @@ -33,5 +39,5 @@
// When set to 1, ASIHTTPRequests will print information about HTTP authentication (Basic, Digest or NTLM) to the console
#ifndef DEBUG_HTTP_AUTHENTICATION
#define DEBUG_HTTP_AUTHENTICATION 0
#define DEBUG_HTTP_AUTHENTICATION 0
#endif
... ...