diff options
| author | Brian Potchik <brian@vector35.com> | 2020-09-13 23:11:32 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2020-09-13 23:11:32 -0400 |
| commit | 1acc58d472470f96f12ac4dfc78dc221775d18d3 (patch) | |
| tree | 4978099506a83fbbbd347a5d0d69b42a821c34e2 /python/__init__.py | |
| parent | 4b15ec8bebac3e04e954d4eb216df66cb101c02a (diff) | |
Disable logging during headless unit tests.
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py index db23a861..2d2da238 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -177,6 +177,11 @@ def _init_plugins(): _destruct_callbacks = _DestructionCallbackHandler() +def disable_logging(): + '''Disable logging in headless mode. By default, logging is enabled in headless mode.''' + _init_plugins() + close_logs() + def bundled_plugin_path(): """ ``bundled_plugin_path`` returns a string containing the current plugin path inside the `install path <https://docs.binary.ninja/getting-started.html#binary-path>`_ |
