diff options
| author | Brian Potchik <brian@vector35.com> | 2020-09-13 14:01:36 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2020-09-13 14:01:36 -0400 |
| commit | 4b15ec8bebac3e04e954d4eb216df66cb101c02a (patch) | |
| tree | 2cccec37ccd0f66db0f875d3fb63cc6089d13258 /python/__init__.py | |
| parent | 6b036f75273ff4b8ac1130d7524b320be096c15b (diff) | |
Enable python logging to stderr by default when in headless mode.
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
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() |
