From 2124ef24137ba4c153729cd1f323af25b4212f08 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Tue, 9 Jan 2024 19:36:26 +0000 Subject: [PATCH] cleaning up logs --- .../artifact/src/internal/download/download-artifact.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/artifact/src/internal/download/download-artifact.ts b/packages/artifact/src/internal/download/download-artifact.ts index 21a1bdb1..7201b2f2 100644 --- a/packages/artifact/src/internal/download/download-artifact.ts +++ b/packages/artifact/src/internal/download/download-artifact.ts @@ -42,11 +42,10 @@ async function streamExtract(url: string, directory: string): Promise { while (retryCount < 5) { try { await streamExtractExternal(url, directory) - core.info(`Artifact downloaded successfully after ${retryCount} retries.`) return } catch (error) { retryCount++ - core.warning( + core.debug( `Failed to download artifact after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...` ) // wait 5 seconds before retrying @@ -61,11 +60,8 @@ export async function streamExtractExternal( url: string, directory: string ): Promise { - core.info(`Stream extract internal started`) - const client = new httpClient.HttpClient(getUserAgentString()) const response = await client.get(url) - if (response.message.statusCode !== 200) { throw new Error( `Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`