| Index: talk/examples/objc/AppRTCDemo/common/ARDUtilities.m
|
| diff --git a/talk/examples/objc/AppRTCDemo/common/ARDUtilities.m b/talk/examples/objc/AppRTCDemo/common/ARDUtilities.m
|
| index 066ee0294c65f9589365059bd93051d2abb9027e..39010dafb01dc7d406a33924ed120dd10511e73a 100644
|
| --- a/talk/examples/objc/AppRTCDemo/common/ARDUtilities.m
|
| +++ b/talk/examples/objc/AppRTCDemo/common/ARDUtilities.m
|
| @@ -25,9 +25,10 @@
|
| * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#import "ARDLogging.h"
|
| #import "ARDUtilities.h"
|
|
|
| +#import "RTCLogging.h"
|
| +
|
| @implementation NSDictionary (ARDUtilites)
|
|
|
| + (NSDictionary *)dictionaryWithJSONString:(NSString *)jsonString {
|
| @@ -37,7 +38,7 @@
|
| NSDictionary *dict =
|
| [NSJSONSerialization JSONObjectWithData:data options:0 error:&error];
|
| if (error) {
|
| - ARDLog(@"Error parsing JSON: %@", error.localizedDescription);
|
| + RTCLogError(@"Error parsing JSON: %@", error.localizedDescription);
|
| }
|
| return dict;
|
| }
|
| @@ -47,7 +48,7 @@
|
| NSDictionary *dict =
|
| [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error];
|
| if (error) {
|
| - ARDLog(@"Error parsing JSON: %@", error.localizedDescription);
|
| + RTCLogError(@"Error parsing JSON: %@", error.localizedDescription);
|
| }
|
| return dict;
|
| }
|
| @@ -85,7 +86,7 @@
|
| NSData *data,
|
| NSError *error) {
|
| if (error) {
|
| - ARDLog(@"Error posting data: %@", error.localizedDescription);
|
| + RTCLogError(@"Error posting data: %@", error.localizedDescription);
|
| if (completionHandler) {
|
| completionHandler(NO, data);
|
| }
|
| @@ -96,7 +97,7 @@
|
| NSString *serverResponse = data.length > 0 ?
|
| [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] :
|
| nil;
|
| - ARDLog(@"Received bad response: %@", serverResponse);
|
| + RTCLogError(@"Received bad response: %@", serverResponse);
|
| if (completionHandler) {
|
| completionHandler(NO, data);
|
| }
|
|
|