diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-05-02 21:30:09 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-05-02 21:30:09 -0400 |
| commit | 62a96d238dcfe93542f495c0a303baf2d4b3e046 (patch) | |
| tree | 12a019c9b8c163d3d860164025f10fd92d47ddda /python | |
| parent | 448097c6eca321519f2de88619afa804ad6d4ef9 (diff) | |
Make plugin loading errors show up in error console
Diffstat (limited to 'python')
| -rw-r--r-- | python/log.py | 5 | ||||
| -rw-r--r-- | python/scriptingprovider.py | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/python/log.py b/python/log.py index 45adb4aa..f09b94a1 100644 --- a/python/log.py +++ b/python/log.py @@ -23,11 +23,6 @@ import _binaryninjacore as core -def redirect_output_to_log(): - global _output_to_log - _output_to_log = True - - def log(level, text): """ ``log`` writes messages to the log console for the given log level. diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index 71402b1b..1fe5d1e3 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -38,6 +38,11 @@ import log _output_to_log = False +def redirect_output_to_log(): + global _output_to_log + _output_to_log = True + + class _ThreadActionContext(object): _actions = [] |
