From 6d30048c493e51836cbdb3ca40d35eceb814c669 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 20 Jan 2016 14:14:45 +0100 Subject: [PATCH] logs: turn on application debug logs only in true debug --- Classes/CallView.m | 2 +- Classes/Utils/Log.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/CallView.m b/Classes/CallView.m index 1956a20c7..ee06708aa 100644 --- a/Classes/CallView.m +++ b/Classes/CallView.m @@ -660,7 +660,7 @@ static void hideSpinner(LinphoneCall *call, void *user_data) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [UIView animateWithDuration:0.3 animations:^{ - LOGI(@"Recentering preview to %@", NSStringFromCGRect(previewFrame)); + LOGD(@"Recentering preview to %@", NSStringFromCGRect(previewFrame)); _videoPreview.frame = previewFrame; }]; }); diff --git a/Classes/Utils/Log.m b/Classes/Utils/Log.m index 654e9027a..00b371129 100644 --- a/Classes/Utils/Log.m +++ b/Classes/Utils/Log.m @@ -61,7 +61,7 @@ } else { NSLog(@"I/%s/Enabling %s logs", ORTP_LOG_DOMAIN, (enabled ? "all" : "application only")); linphone_core_set_log_level(level); - ortp_set_log_level("ios", ORTP_DEBUG); + ortp_set_log_level("ios", level == ORTP_DEBUG ? ORTP_DEBUG : ORTP_MESSAGE); } }