bt2: remove probing of BABELTRACE_PYTHON_BT2_NO_TRACEBACK env var
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 5 Jul 2019 14:58:45 +0000 (10:58 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 5 Jul 2019 17:13:52 +0000 (13:13 -0400)
This was used previously when handling exceptions thrown by user code,
to decide whether we printed exceptions or not.  Nowadays, we let
exceptions propagate to the native code, which logs it.  I believe we
can remove this.

Change-Id: I14adae265c83a169d176dda9d83d4d05fcd26edc
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1636
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/component.py

index b8026cc28aa67527424d67e0a1c2ad7b007c6c4d..55f07f49a19077990998ba043c7f1e4daf0e730e 100644 (file)
@@ -31,10 +31,6 @@ import bt2
 import os
 
 
-_env_var = os.environ.get('BABELTRACE_PYTHON_BT2_NO_TRACEBACK')
-_NO_PRINT_TRACEBACK = _env_var == '1'
-
-
 # This class wraps a component class pointer. This component class could
 # have been created by Python code, but since we only have the pointer,
 # we can only wrap it in a generic way and lose the original Python
This page took 0.024745 seconds and 4 git commands to generate.