From 8a403ce453f2f1dc29e602a186d45bbbe687d3b0 Mon Sep 17 00:00:00 2001 From: Chad Bentz <1760475+felickz@users.noreply.github.com> Date: Fri, 5 May 2023 00:21:28 -0400 Subject: [PATCH] add debug logs --- componentDetection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/componentDetection.ts b/componentDetection.ts index 5bec6be..c15d264 100644 --- a/componentDetection.ts +++ b/componentDetection.ts @@ -30,14 +30,14 @@ export default class ComponentDetection { // Get the latest release from the component-detection repo, download the tarball, and extract it public static async downloadLatestRelease() { try { - core.debug("Downloading latest release"); + core.debug(`Downloading latest release for ${process.platform}`); const downloadURL = await this.getLatestReleaseURL(); const blob = await (await fetch(new URL(downloadURL))).blob(); const arrayBuffer = await blob.arrayBuffer(); const buffer = Buffer.from(arrayBuffer); // Write the blob to a file - core.debug("Writing binary to file"); + core.debug(`Writing binary to file ${this.componentDetectionPath}`); await fs.writeFileSync(this.componentDetectionPath, buffer, { mode: 0o777, flag: 'w' }); } catch (error: any) { core.error(error);