mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
Serialize logs in the Python wrapper.
This commit is contained in:
parent
211b56c29f
commit
9c3f4771a9
2 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ blacklisted_functions = [
|
|||
'linphone_core_payload_type_enabled',
|
||||
'linphone_core_payload_type_is_vbr',
|
||||
'linphone_core_publish',
|
||||
'linphone_core_serialize_logs', # There is no use to wrap this function
|
||||
'linphone_core_set_log_file', # There is no use to wrap this function
|
||||
'linphone_core_set_log_handler', # Hand-written but put directly in the linphone module
|
||||
'linphone_core_set_log_level', # There is no use to wrap this function
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ static void pylinphone_module_log_handler(OrtpLogLevel lev, const char *fmt, va_
|
|||
}
|
||||
|
||||
static void pylinphone_init_logging(void) {
|
||||
linphone_core_serialize_logs();
|
||||
linphone_core_set_log_handler(pylinphone_module_log_handler);
|
||||
linphone_core_set_log_level(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue