bt2: honor self component or query log level when logging
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_trace.i
index 1ecc47204a483a9c8cf304232146563df2dc077c..f771ef45c4e10a7e8ffb54dab31d35bc321a2c6e 100644 (file)
@@ -43,7 +43,8 @@ trace_destroyed_listener(const bt_trace *trace, void *py_callable)
        if (py_res) {
                BT_ASSERT(py_res == Py_None);
        } else {
-               loge_exception();
+               loge_exception("Trace's destruction listener (Python)",
+                       BT_LOG_OUTPUT_LEVEL);
        }
 
        Py_DECREF(py_trace_ptr);
@@ -51,7 +52,7 @@ trace_destroyed_listener(const bt_trace *trace, void *py_callable)
 }
 
 int bt_bt2_trace_add_destruction_listener(bt_trace *trace,
-               PyObject *py_callable, uint64_t *id)
+               PyObject *py_callable, bt_listener_id *id)
 {
        bt_trace_add_listener_status status;
 
@@ -68,4 +69,4 @@ int bt_bt2_trace_add_destruction_listener(bt_trace *trace,
 %}
 
 int bt_bt2_trace_add_destruction_listener(bt_trace *trace,
-               PyObject *py_callable, uint64_t *id);
+               PyObject *py_callable, bt_listener_id *id);
This page took 0.023751 seconds and 4 git commands to generate.