From 90ee020ccdaf39ff0ad55ebae768997e569dbb93 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Mon, 1 Apr 2024 13:52:01 +0000 Subject: [PATCH] cleaning up debug statements --- packages/artifact/src/internal/upload/blob-upload.ts | 1 + packages/artifact/src/internal/upload/zip.ts | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/artifact/src/internal/upload/blob-upload.ts b/packages/artifact/src/internal/upload/blob-upload.ts index 1e60770d..6f5bf734 100644 --- a/packages/artifact/src/internal/upload/blob-upload.ts +++ b/packages/artifact/src/internal/upload/blob-upload.ts @@ -51,6 +51,7 @@ export async function uploadZipToBlobStorage( zipUploadStream.pipe(uploadStream) // This stream is used for the upload zipUploadStream.pipe(hashStream).setEncoding('hex') // This stream is used to compute a hash of the zip content that gets used. Integrity check + core.info('Beginning upload of artifact content to blob storage') try { await blockBlobClient.uploadStream( uploadStream, diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index 531f2950..953fc79e 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -42,11 +42,9 @@ export async function createZipUploadStream( zip.on('finish', zipFinishCallback) zip.on('end', zipEndCallback) - core.debug(`Number of files to upload: ${uploadSpecification.length}`) for (const file of uploadSpecification) { await new Promise((resolve, reject) => { if (file.sourcePath !== null) { - core.debug(`Creating file entry: ${file.sourcePath}`) // Add a normal file to the zip zip.entry( createReadStream(file.sourcePath), @@ -58,7 +56,6 @@ export async function createZipUploadStream( ) } else { // add directory to zip - core.debug(`Creating directory entry: ${file.destinationPath}`) zip.entry( null, {name: `${file.destinationPath}/`},