Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_trace_class.i.h
index f51d619fdfd70f75f5864c3a20bfe230cc03a2c1..48a1734ac17a178a6486dca7e5801ef751c7ea36 100644 (file)
@@ -32,14 +32,12 @@ trace_class_destroyed_listener(const bt_trace_class *trace_class, void *py_calla
                SWIGTYPE_p_bt_trace_class, 0);
        if (!py_trace_class_ptr) {
                BT_LOGF_STR("Failed to create a SWIG pointer object.");
-               abort();
+               bt_common_abort();
        }
 
        py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_class_ptr);
        if (!py_res) {
-               loge_exception_append_cause(
-                       "Trace class's destruction listener (Python)",
-                       BT_LOG_OUTPUT_LEVEL);
+               logw_exception_clear(BT_LOG_OUTPUT_LEVEL);
                goto end;
        }
 
This page took 0.023521 seconds and 4 git commands to generate.