X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_log_and_append_error.h;h=11b6e414e1ec435e99a7575c912e84eabc2cb090;hb=84e438afc1b27f23047613c413e2caec283af065;hp=37cc2e78ac6484bb93880d51a8916d88139bb017;hpb=29a8227a1b5d08e0b600a2575372a3b5ae232d21;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h b/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h index 37cc2e78..11b6e414 100644 --- a/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h +++ b/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h @@ -176,8 +176,10 @@ void restore_bt_error_and_append_current_exception_chain( } static inline -void log_exception_and_maybe_append_error(int func_log_level, - int active_log_level, bool append_error, +void log_exception_and_maybe_append_cause( + int func_log_level, + int active_log_level, + bool append_error, bt_self_component_class *self_component_class, bt_self_component *self_component, bt_self_message_iterator *self_message_iterator, @@ -226,15 +228,15 @@ bt_logging_level get_self_message_iterator_log_level( } static inline -void loge_exception(const char *module_name, int active_log_level) +void loge_exception_append_cause(const char *module_name, int active_log_level) { - log_exception_and_maybe_append_error(BT_LOG_ERROR, active_log_level, + log_exception_and_maybe_append_cause(BT_LOG_ERROR, active_log_level, true, NULL, NULL, NULL, module_name); } static inline void logw_exception(int active_log_level) { - log_exception_and_maybe_append_error(BT_LOG_WARNING, active_log_level, + log_exception_and_maybe_append_cause(BT_LOG_WARNING, active_log_level, false, NULL, NULL, NULL, NULL); }