From 6c3233c9e75a4565d165241d098f9d411ed8f488 Mon Sep 17 00:00:00 2001 From: Ian Woodard <17186604+IanWoodard@users.noreply.github.com> Date: Fri, 17 Jan 2025 13:27:03 -0800 Subject: [PATCH] Adding debug log --- devservices/utils/dependencies.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devservices/utils/dependencies.py b/devservices/utils/dependencies.py index eb84683..48cb847 100644 --- a/devservices/utils/dependencies.py +++ b/devservices/utils/dependencies.py @@ -615,13 +615,16 @@ def _has_remote_config(remote_config: RemoteConfig | None) -> TypeGuard[RemoteCo def _rev_parse(repo_dir: str, ref: str) -> str: - return ( + rev = ( subprocess.check_output( ["git", "rev-parse", ref], cwd=repo_dir, stderr=subprocess.PIPE ) .strip() .decode() ) + logger = logging.getLogger(LOGGER_NAME) + logger.debug("Parsed revision %s for %s", rev, ref) + return rev def _run_command(