From 4b15ec8bebac3e04e954d4eb216df66cb101c02a Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sun, 13 Sep 2020 14:01:36 -0400 Subject: Enable python logging to stderr by default when in headless mode. --- python/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/__init__.py') diff --git a/python/__init__.py b/python/__init__.py index a54bc2e8..db23a861 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -163,7 +163,9 @@ _plugin_init = False def _init_plugins(): global _plugin_init if not _plugin_init: - core.BNInitCorePlugins() + result = core.BNInitCorePlugins() + if result is True and not core_ui_enabled() and sys.stderr.isatty(): + log_to_stderr(LogLevel.InfoLog) if not os.environ.get('BN_DISABLE_USER_PLUGINS'): core.BNInitUserPlugins() core.BNInitRepoPlugins() -- cgit v1.3.1