1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

GHA: Add more verbose logging

This commit is contained in:
Tom Poole 2025-03-05 08:20:15 +00:00
parent 35c7afc6a1
commit f79b88d826
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ runs:
input_keys = """${{ inputs.keys }}""" input_keys = """${{ inputs.keys }}"""
logger.debug(f'Input keys: {input_keys}') logger.debug(f'Input keys: {input_keys}')
artifact_keys = filter(None, [x.strip() for x in input_keys.split('\n')]) 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' api_prefix = 'actions'
artifacts_info = json_github_api_request(f'{api_prefix}/runs/{environ["GITHUB_RUN_ID"]}/artifacts') artifacts_info = json_github_api_request(f'{api_prefix}/runs/{environ["GITHUB_RUN_ID"]}/artifacts')

View file

@ -29,7 +29,7 @@ runs:
input_paths = """${{ inputs.paths }}""" input_paths = """${{ inputs.paths }}"""
logger.debug(f'Input paths: {input_paths}') logger.debug(f'Input paths: {input_paths}')
paths = filter(None, [x.strip() for x in input_paths.split('\n')]) 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') mkdir('tmp_artifact_upload')
archive_path = 'tmp_artifact_upload/${{ inputs.key }}.tar' archive_path = 'tmp_artifact_upload/${{ inputs.key }}.tar'
logger.debug(f'Creating archive: {archive_path}') logger.debug(f'Creating archive: {archive_path}')

View file

@ -6,7 +6,7 @@ def configure_logger(logger):
handler = logging.StreamHandler(stdout) handler = logging.StreamHandler(stdout)
formatter = logging.Formatter('[%(name)s] %(message)s') formatter = logging.Formatter('[%(name)s] %(message)s')
handler.setFormatter(formatter) 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) logger.setLevel(level)
handler.setLevel(level) handler.setLevel(level)
logger.addHandler(handler) logger.addHandler(handler)