Index: talk/examples/objc/AppRTCDemo/common/ARDUtilities.m |
diff --git a/talk/examples/objc/AppRTCDemo/ARDUtilities.m b/talk/examples/objc/AppRTCDemo/common/ARDUtilities.m |
similarity index 93% |
rename from talk/examples/objc/AppRTCDemo/ARDUtilities.m |
rename to talk/examples/objc/AppRTCDemo/common/ARDUtilities.m |
index 781e786aa47726377cf223df55b349305bdb175c..066ee0294c65f9589365059bd93051d2abb9027e 100644 |
--- a/talk/examples/objc/AppRTCDemo/ARDUtilities.m |
+++ b/talk/examples/objc/AppRTCDemo/common/ARDUtilities.m |
@@ -25,6 +25,7 @@ |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+#import "ARDLogging.h" |
#import "ARDUtilities.h" |
@implementation NSDictionary (ARDUtilites) |
@@ -36,7 +37,7 @@ |
NSDictionary *dict = |
[NSJSONSerialization JSONObjectWithData:data options:0 error:&error]; |
if (error) { |
- NSLog(@"Error parsing JSON: %@", error.localizedDescription); |
+ ARDLog(@"Error parsing JSON: %@", error.localizedDescription); |
} |
return dict; |
} |
@@ -46,7 +47,7 @@ |
NSDictionary *dict = |
[NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error]; |
if (error) { |
- NSLog(@"Error parsing JSON: %@", error.localizedDescription); |
+ ARDLog(@"Error parsing JSON: %@", error.localizedDescription); |
} |
return dict; |
} |
@@ -84,7 +85,7 @@ |
NSData *data, |
NSError *error) { |
if (error) { |
- NSLog(@"Error posting data: %@", error.localizedDescription); |
+ ARDLog(@"Error posting data: %@", error.localizedDescription); |
if (completionHandler) { |
completionHandler(NO, data); |
} |
@@ -95,7 +96,7 @@ |
NSString *serverResponse = data.length > 0 ? |
[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] : |
nil; |
- NSLog(@"Received bad response: %@", serverResponse); |
+ ARDLog(@"Received bad response: %@", serverResponse); |
if (completionHandler) { |
completionHandler(NO, data); |
} |