From 2b111a229df9a16d275c9812898e3ff3e6f4e7e9 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Thu, 22 Jan 2015 13:36:12 -0500 Subject: [PATCH] CB-8351 Use a local copy of DLog macro rather than CordovaLib version --- src/ios/CDVFileTransfer.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ios/CDVFileTransfer.m b/src/ios/CDVFileTransfer.m index 167a611..83b5c43 100644 --- a/src/ios/CDVFileTransfer.m +++ b/src/ios/CDVFileTransfer.m @@ -26,6 +26,14 @@ #import #import +#ifndef DLog +#ifdef DEBUG + #define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) +#else + #define DLog(...) +#endif +#endif + @interface CDVFileTransfer () // Sets the requests headers for the request. - (void)applyRequestHeaders:(NSDictionary*)headers toRequest:(NSMutableURLRequest*)req;