From f79b88d8269033f32efa88a89c4c95295b5bcba3 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Wed, 5 Mar 2025 08:20:15 +0000 Subject: [PATCH] GHA: Add more verbose logging --- .github/actions/download_artifacts/action.yaml | 2 +- .github/actions/upload_artifact/action.yaml | 2 +- .github/workflows/configure_logger.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/download_artifacts/action.yaml b/.github/actions/download_artifacts/action.yaml index bee94b0556..75c0003599 100644 --- a/.github/actions/download_artifacts/action.yaml +++ b/.github/actions/download_artifacts/action.yaml @@ -28,7 +28,7 @@ runs: input_keys = """${{ inputs.keys }}""" logger.debug(f'Input keys: {input_keys}') artifact_keys = filter(None, [x.strip() for x in input_keys.split('\n')]) - logger.debug(f'Parsed keys: {artifact_keys}') + logger.info(f'Downloading keys: {artifact_keys}') api_prefix = 'actions' artifacts_info = json_github_api_request(f'{api_prefix}/runs/{environ["GITHUB_RUN_ID"]}/artifacts') diff --git a/.github/actions/upload_artifact/action.yaml b/.github/actions/upload_artifact/action.yaml index 3c5c95a5e4..7e02071a4c 100644 --- a/.github/actions/upload_artifact/action.yaml +++ b/.github/actions/upload_artifact/action.yaml @@ -29,7 +29,7 @@ runs: input_paths = """${{ inputs.paths }}""" logger.debug(f'Input paths: {input_paths}') paths = filter(None, [x.strip() for x in input_paths.split('\n')]) - logger.debug(f'Parsed paths: {paths}') + logger.info(f'Uploading paths: {paths}') mkdir('tmp_artifact_upload') archive_path = 'tmp_artifact_upload/${{ inputs.key }}.tar' logger.debug(f'Creating archive: {archive_path}') diff --git a/.github/workflows/configure_logger.py b/.github/workflows/configure_logger.py index 4e06cd8c94..5961c43750 100644 --- a/.github/workflows/configure_logger.py +++ b/.github/workflows/configure_logger.py @@ -6,7 +6,7 @@ def configure_logger(logger): handler = logging.StreamHandler(stdout) formatter = logging.Formatter('[%(name)s] %(message)s') handler.setFormatter(formatter) - level = logging.DEBUG if (getenv('RUNNER_DEBUG', '0').lower() not in ('0', 'f', 'false')) else logging.WARNING + level = logging.DEBUG if (getenv('RUNNER_DEBUG', '0').lower() not in ('0', 'f', 'false')) else logging.INFO logger.setLevel(level) handler.setLevel(level) logger.addHandler(handler)