Add debug logging
infra/host-provisioner/pipeline/head This commit looks good Details

Trying to figure out why it's not cloning the correct branch...
master
Dustin 2025-02-07 21:43:38 -06:00
parent cefdd39e2d
commit 2500dc511d
1 changed files with 3 additions and 1 deletions

View File

@ -80,8 +80,9 @@ def clone_configpolicy(branch: str) -> None:
'.', '.',
] ]
log.info( log.info(
'Cloning configuration policy from %s into %s', 'Cloning configuration policy from %s (branch %s) into %s',
CONFIGPOLICY, CONFIGPOLICY,
branch,
os.getcwd(), os.getcwd(),
) )
subprocess.run(cmd, check=True, stdin=subprocess.DEVNULL) subprocess.run(cmd, check=True, stdin=subprocess.DEVNULL)
@ -119,6 +120,7 @@ def get_host_info() -> HostInfo | None:
): ):
if method is None: if method is None:
break break
log.debug('Received: %r', body)
try: try:
data = json.loads(body) data = json.loads(body)
host_info = HostInfo.model_validate(data) host_info = HostInfo.model_validate(data)