From 2500dc511dec85547799e7337a1b3c5c855b4c8d Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 7 Feb 2025 21:43:38 -0600 Subject: [PATCH] Add debug logging Trying to figure out why it's not cloning the correct branch... --- host_provisioner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/host_provisioner.py b/host_provisioner.py index 0dbd65d..c6b3f4c 100644 --- a/host_provisioner.py +++ b/host_provisioner.py @@ -80,8 +80,9 @@ def clone_configpolicy(branch: str) -> None: '.', ] log.info( - 'Cloning configuration policy from %s into %s', + 'Cloning configuration policy from %s (branch %s) into %s', CONFIGPOLICY, + branch, os.getcwd(), ) subprocess.run(cmd, check=True, stdin=subprocess.DEVNULL) @@ -119,6 +120,7 @@ def get_host_info() -> HostInfo | None: ): if method is None: break + log.debug('Received: %r', body) try: data = json.loads(body) host_info = HostInfo.model_validate(data)