| Index: talk/examples/objc/AppRTCDemo/ios/ARDAppDelegate.m
|
| diff --git a/talk/examples/objc/AppRTCDemo/ios/ARDAppDelegate.m b/talk/examples/objc/AppRTCDemo/ios/ARDAppDelegate.m
|
| index 352ade60c7e9660f2b1f03cd4c4fa274bf5e8e15..09e437426068c005c83932617829120ca9f7a266 100644
|
| --- a/talk/examples/objc/AppRTCDemo/ios/ARDAppDelegate.m
|
| +++ b/talk/examples/objc/AppRTCDemo/ios/ARDAppDelegate.m
|
| @@ -27,10 +27,11 @@
|
|
|
| #import "ARDAppDelegate.h"
|
|
|
| -#import "ARDLogging.h"
|
| -#import "ARDMainViewController.h"
|
| +#import "RTCLogging.h"
|
| #import "RTCPeerConnectionFactory.h"
|
|
|
| +#import "ARDMainViewController.h"
|
| +
|
| @implementation ARDAppDelegate {
|
| UIWindow *_window;
|
| }
|
| @@ -44,7 +45,14 @@
|
| [_window makeKeyAndVisible];
|
| ARDMainViewController *viewController = [[ARDMainViewController alloc] init];
|
| _window.rootViewController = viewController;
|
| - ARDLogInit();
|
| +
|
| +#ifndef _DEBUG
|
| + // In debug builds the default level is LS_INFO and in non-debug builds it is
|
| + // disabled. Continue to log to console in non-debug builds, but only
|
| + // warnings and errors.
|
| + RTCSetMinDebugLogLevel(kRTCLoggingSeverityWarning);
|
| +#endif
|
| +
|
| return YES;
|
| }
|
|
|
|
|