Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Unified Diff: talk/examples/objc/AppRTCDemo/common/ARDUtilities.m

Issue 1217473011: AppRTCDemo file logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698