diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index b64b28bec..e557cd3b0 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1323,8 +1323,8 @@ static LinphoneCoreVTable linphonec_vtable = {.show = NULL, linphone_core_enable_video(theLinphoneCore, FALSE, FALSE); } - LOGW(@"Linphone [%s] started on [%s]", linphone_core_get_version(), [[UIDevice currentDevice].model cStringUsingEncoding:[NSString defaultCStringEncoding]]); - + LOGI(@"Linphone [%s] started on [%s]", linphone_core_get_version(), + [[UIDevice currentDevice].model cStringUsingEncoding:[NSString defaultCStringEncoding]]); // Post event NSDictionary *dict = [NSDictionary dictionaryWithObject:[NSValue valueWithPointer:theLinphoneCore] @@ -2056,15 +2056,21 @@ static void audioRouteChangeListenerCallback ( } -(void)setLogsEnabled:(BOOL)enabled { - if (enabled) { - NSLog(@"Enabling debug logs"); + if ([LinphoneManager isRunningTests]) { + NSLog(@"Running tests, forcing logs to Warning level"); linphone_core_enable_logs_with_cb((OrtpLogFunc)linphone_iphone_log_handler); - linphone_core_set_log_level(ORTP_DEBUG); - linphone_core_enable_log_collection(enabled); + linphone_core_set_log_level(ORTP_WARNING); } else { - NSLog(@"Disabling debug logs"); - linphone_core_enable_log_collection(enabled); - linphone_core_disable_logs(); + if (enabled) { + NSLog(@"Enabling debug logs"); + linphone_core_enable_logs_with_cb((OrtpLogFunc)linphone_iphone_log_handler); + linphone_core_set_log_level(ORTP_DEBUG); + linphone_core_enable_log_collection(enabled); + } else { + NSLog(@"Disabling debug logs"); + linphone_core_enable_log_collection(enabled); + linphone_core_disable_logs(); + } } } diff --git a/submodules/linphone b/submodules/linphone index 7fe0661be..cddb9c352 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 7fe0661be6ed2fa5b8e5d3793bf78974b095b5c6 +Subproject commit cddb9c352effaa8a373127acb6717b8024485bf5