Commit 09a533a8 authored by jehan's avatar jehan
Browse files

make sure to also register loghandler at SAL level

parent 858c0605
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment