From 1acc58d472470f96f12ac4dfc78dc221775d18d3 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sun, 13 Sep 2020 23:11:32 -0400 Subject: Disable logging during headless unit tests. --- python/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/__init__.py') 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 `_ -- cgit v1.3.1