logs: turn on application debug logs only in true debug

This commit is contained in:
Gautier Pelloux-Prayer 2016-01-20 14:14:45 +01:00
parent 983067d718
commit 6d30048c49
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}];
});

View file

@ -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);
}
}