Skip to content

Commit

Permalink
cleaning up logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vmjoseph committed Jan 9, 2024
1 parent d617670 commit 2124ef2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/artifact/src/internal/download/download-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@ async function streamExtract(url: string, directory: string): Promise<void> {
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
Expand All @@ -61,11 +60,8 @@ export async function streamExtractExternal(
url: string,
directory: string
): Promise<void> {
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}`
Expand Down

0 comments on commit 2124ef2

Please # to comment.