projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
py-common: make bt_py_common_format_exception accept an arbitrary exception
[babeltrace.git]
/
src
/
python-plugin-provider
/
python-plugin-provider.c
diff --git
a/src/python-plugin-provider/python-plugin-provider.c
b/src/python-plugin-provider/python-plugin-provider.c
index a1324cff97ff7bbc8c4d259df24c97645687f39f..765035e2df60dcde37713ffb72c2c699ba3e4b81 100644
(file)
--- a/
src/python-plugin-provider/python-plugin-provider.c
+++ b/
src/python-plugin-provider/python-plugin-provider.c
@@
-72,7
+72,7
@@
void append_python_traceback_error_cause(void)
GString *exc = NULL;
if (Py_IsInitialized() && PyErr_Occurred()) {
GString *exc = NULL;
if (Py_IsInitialized() && PyErr_Occurred()) {
- exc = bt_py_common_format_exception(BT_LOG_OUTPUT_LEVEL);
+ exc = bt_py_common_format_
current_
exception(BT_LOG_OUTPUT_LEVEL);
if (!exc) {
BT_LOGE_STR("Failed to format Python exception.");
goto end;
if (!exc) {
BT_LOGE_STR("Failed to format Python exception.");
goto end;
@@
-94,7
+94,7
@@
void log_python_traceback(int log_level)
GString *exc = NULL;
if (Py_IsInitialized() && PyErr_Occurred()) {
GString *exc = NULL;
if (Py_IsInitialized() && PyErr_Occurred()) {
- exc = bt_py_common_format_exception(BT_LOG_OUTPUT_LEVEL);
+ exc = bt_py_common_format_
current_
exception(BT_LOG_OUTPUT_LEVEL);
if (!exc) {
BT_LOGE_STR("Failed to format Python exception.");
goto end;
if (!exc) {
BT_LOGE_STR("Failed to format Python exception.");
goto end;
This page took
0.02481 seconds
and
4
git commands to generate.