mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 01:39:20 +00:00
make sure to also register loghandler at SAL level
This commit is contained in:
parent
858c06056e
commit
09a533a8a9
1 changed files with 5 additions and 1 deletions
|
|
@ -462,8 +462,10 @@ void linphone_core_set_log_handler(OrtpLogFunc logfunc) {
|
|||
if (ortp_get_log_handler() == linphone_core_log_collection_handler) {
|
||||
ms_message("There is already a log collection handler, keep it");
|
||||
liblinphone_log_func = logfunc;
|
||||
} else
|
||||
} else {
|
||||
ortp_set_log_handler(logfunc);
|
||||
sal_set_log_handler(logfunc);
|
||||
}
|
||||
}
|
||||
|
||||
void linphone_core_set_log_file(FILE *file) {
|
||||
|
|
@ -695,8 +697,10 @@ void linphone_core_enable_log_collection(LinphoneLogCollectionState state) {
|
|||
liblinphone_log_func = ortp_get_log_handler();
|
||||
}
|
||||
ortp_set_log_handler(linphone_core_log_collection_handler);
|
||||
sal_set_log_handler(linphone_core_log_collection_handler);
|
||||
} else {
|
||||
ortp_set_log_handler(liblinphone_log_func);
|
||||
sal_set_log_handler(liblinphone_log_func);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue