From f9bafe97e6a2b1d4b9786ae3ff513aaba0d9bc39 Mon Sep 17 00:00:00 2001 From: bethanyj28 Date: Wed, 3 Apr 2024 15:27:58 -0400 Subject: [PATCH] update logging --- packages/artifact/src/internal/upload/zip.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index 3dd7390b..df85c938 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -71,10 +71,11 @@ export async function createZipUploadStream( {name: file.destinationPath}, function (err, entry) { if (err) { - core.error('A file entry error occurred:', err) + core.error('A file entry error occurred') + core.info(err) throw new Error('An error occurred during file entry') } - core.debug(`File entry was succesful: ${entry}`) + core.debug(`File entry was succesful: ${entry.data.name}`) } ) @@ -86,10 +87,11 @@ export async function createZipUploadStream( {name: `${file.destinationPath}/`}, function (err, entry) { if (err) { - core.error('A directory entry error occurred:', err) + core.error('A directory entry error occurred') + core.info(err) throw new Error('An error occurred during directory entry') } - core.debug(`File entry was succesful: ${entry}`) + core.debug(`File entry was succesful: ${entry.data.name}`) } ) )