Skip to content

Commit

Permalink
Daemon: Log the worker's path and Python interpreter (#6442)
Browse files Browse the repository at this point in the history
The `aiida.engine.daemon.worker.start_worker` now logs debug messages
containing the `sys.path` and `sys.executable`. This should help with
debugging inconsistencies with the environment of the daemon.
  • Loading branch information
sphuber authored Jun 1, 2024
1 parent 7f9129f commit ae20941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aiida/engine/daemon/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def start_daemon_worker(foreground: bool = False) -> None:
daemon_client = get_daemon_client()
configure_logging(daemon=not foreground, daemon_log_file=daemon_client.daemon_log_file)

LOGGER.debug(f'sys.executable: {sys.executable}')
LOGGER.debug(f'sys.path: {sys.path}')

try:
manager = get_manager()
runner = manager.create_daemon_runner()
Expand Down

0 comments on commit ae20941

Please sign in to comment.