From b6fac7688080e923c34e7d2f3d00078eab3c2c05 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 23 Mar 2015 09:34:11 +0100 Subject: [PATCH] Fix Python module build. --- tools/python/apixml2python.py | 1 + tools/python/apixml2python/handwritten_definitions.mustache | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/apixml2python.py b/tools/python/apixml2python.py index da91429b5..a073e8141 100755 --- a/tools/python/apixml2python.py +++ b/tools/python/apixml2python.py @@ -58,6 +58,7 @@ blacklisted_functions = [ '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 + 'linphone_core_set_log_level_mask', # There is no use to wrap this function 'linphone_core_set_video_policy', # missing LinphoneVideoPolicy 'linphone_proxy_config_get_privacy', # missing LinphonePrivacyMask 'linphone_proxy_config_normalize_number', # to be handwritten because of result via arguments diff --git a/tools/python/apixml2python/handwritten_definitions.mustache b/tools/python/apixml2python/handwritten_definitions.mustache index 4bd8f9f71..e9edec0fb 100644 --- a/tools/python/apixml2python/handwritten_definitions.mustache +++ b/tools/python/apixml2python/handwritten_definitions.mustache @@ -106,7 +106,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); + linphone_core_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL); }