set callback before setting levels

This commit is contained in:
Simon Morlat 2017-11-10 11:04:29 +01:00
parent c6a06ea0a7
commit 7e58bc828a

View file

@ -1021,8 +1021,8 @@ void linphone_core_enable_logs(FILE *file){
}
void linphone_core_enable_logs_with_cb(OrtpLogFunc logfunc){
linphone_core_set_log_level(ORTP_MESSAGE);
linphone_core_set_log_handler(logfunc);
linphone_core_set_log_level(ORTP_MESSAGE);
}
void linphone_core_disable_logs(void){