diff --git a/spyder/plugins/maininterpreter/container.py b/spyder/plugins/maininterpreter/container.py index 1d954684b58..8a2f2b7a813 100644 --- a/spyder/plugins/maininterpreter/container.py +++ b/spyder/plugins/maininterpreter/container.py @@ -8,6 +8,7 @@ """Main interpreter container.""" # Standard library imports +import logging import os import os.path as osp import sys @@ -27,6 +28,9 @@ from spyder.utils.workers import WorkerManager +logger = logging.getLogger(__name__) + + class MainInterpreterContainer(PluginMainContainer): sig_interpreter_changed = Signal(str) @@ -217,6 +221,7 @@ def _finish_updating_envs(self, worker, output, error): def _update_interpreter(self, interpreter=None): """Set main interpreter and update information.""" if interpreter: + logger.debug(f"Main interpreter changed to {interpreter}") self._interpreter = interpreter if self._interpreter not in self.path_to_env: