bt2: make log functions clear error indicator
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 19 Oct 2019 03:57:30 +0000 (23:57 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 21 Oct 2019 21:06:11 +0000 (17:06 -0400)
commit981f33ddf743a4f38b959afb7afe66083ce0ed76
tree0ae2efa3b25165d049f941c581d0dad8eb0b6f2f
parent64961f8b6306c567fd2683d19a1bdee1331a8d5b
bt2: make log functions clear error indicator

In all call sites of logw_exception and loge_exception_append_cause, we
clear the error indicator afterwards (call PyErr_Clear).  Make these
functions clear the error indicator themselves instead, and rename them
accordingly.  This could help avoid forgetting to clear the indicator in
the future.

Change-Id: I22855c1bb4af0e5b85bafc3f1009589ee08c0564
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2225
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/bindings/python/bt2/bt2/native_bt_component_class.i.h
src/bindings/python/bt2/bt2/native_bt_graph.i.h
src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h
src/bindings/python/bt2/bt2/native_bt_trace.i.h
src/bindings/python/bt2/bt2/native_bt_trace_class.i.h
This page took 0.024821 seconds and 4 git commands to generate.