logging: strip down and clean `log.h` and `log.c`
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_error.i.h
index 053941517829a807e59f6a5a9260b5a49a85c101..78eeb28ae5e9d39a8c1aecb724e0544bf8e5e61e 100644 (file)
@@ -13,7 +13,8 @@ PyObject *bt_bt2_format_bt_error_cause(const bt_error_cause *error_cause)
        PyObject *py_error_cause_str = NULL;
 
        error_cause_str = format_bt_error_cause(error_cause, 80,
-               bt_python_bindings_bt2_log_level, BT_COMMON_COLOR_WHEN_NEVER);
+               (bt_logging_level) bt_python_bindings_bt2_log_level,
+               BT_COMMON_COLOR_WHEN_NEVER);
        BT_ASSERT(error_cause_str);
 
        py_error_cause_str = PyString_FromString(error_cause_str);
@@ -30,7 +31,8 @@ PyObject *bt_bt2_format_bt_error(const bt_error *error)
        PyObject *py_error_str = NULL;
 
        error_str = format_bt_error(error, 80,
-               bt_python_bindings_bt2_log_level, BT_COMMON_COLOR_WHEN_NEVER);
+               (bt_logging_level) bt_python_bindings_bt2_log_level,
+               BT_COMMON_COLOR_WHEN_NEVER);
        BT_ASSERT(error_str);
 
        py_error_str = PyString_FromString(error_str);
This page took 0.023898 seconds and 4 git commands to generate.