Skip to content

Commit 8a403ce

Browse files
committed
add debug logs
1 parent df3fb46 commit 8a403ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

componentDetection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ export default class ComponentDetection {
3030
// Get the latest release from the component-detection repo, download the tarball, and extract it
3131
public static async downloadLatestRelease() {
3232
try {
33-
core.debug("Downloading latest release");
33+
core.debug(`Downloading latest release for ${process.platform}`);
3434
const downloadURL = await this.getLatestReleaseURL();
3535
const blob = await (await fetch(new URL(downloadURL))).blob();
3636
const arrayBuffer = await blob.arrayBuffer();
3737
const buffer = Buffer.from(arrayBuffer);
3838

3939
// Write the blob to a file
40-
core.debug("Writing binary to file");
40+
core.debug(`Writing binary to file ${this.componentDetectionPath}`);
4141
await fs.writeFileSync(this.componentDetectionPath, buffer, { mode: 0o777, flag: 'w' });
4242
} catch (error: any) {
4343
core.error(error);

0 commit comments

Comments
 (0)