diff --git a/craft_providers/actions/snap_installer.py b/craft_providers/actions/snap_installer.py index fb94508ea..72644dcdc 100644 --- a/craft_providers/actions/snap_installer.py +++ b/craft_providers/actions/snap_installer.py @@ -237,7 +237,7 @@ def _get_assertion(query: list[str]) -> bytes: :raises SnapInstallationError: if 'snap known' call fails """ command = snap_cmd.formulate_known_command(query=query) - logger.debug("Executing command on host: %s", command) + logger.debug("Executing command on host: %s", shlex.join(command)) try: return subprocess.run(command, capture_output=True, check=True).stdout except subprocess.CalledProcessError as error: