Skip to content

Commit 648d5ac

Browse files
committed
chore: add logs
1 parent ce86bdc commit 648d5ac

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

scripts/pack-utils/amo.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export async function submitAddon(
130130
opts.sourceFile = await packingSourceCode;
131131
}
132132

133-
console.log('[amo] start signAddon');
133+
console.log(`[amo] [${options.addonId}] start signAddon`);
134134
return signAddon(opts);
135135
}
136136

scripts/pack-utils/xpi.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async function packXpi({
2727
await sleep(last + 60000);
2828
}
2929

30+
console.log(`[xpi] [${extensionConfig.id}] start signAddon`);
3031
const { success, downloadedFiles } = await signAddon({
3132
xpiPath: zipPath,
3233
version,
@@ -42,12 +43,14 @@ async function packXpi({
4243
if (downloadedFiles.length === 0) {
4344
throw new Error('No signed addon found');
4445
}
45-
console.log(`[xpi] Downloaded: ${downloadedFiles.join(', ')}`);
46+
console.log(
47+
`[xpi] [${extensionConfig.id}] Downloaded: ${downloadedFiles.join(', ')}`,
48+
);
4649
const fileName = getOutputFile(extensionConfig.browser, version, 'xpi');
4750
const outFile = join(releasePath, fileName);
4851
// Move download file to output dir
4952
await rename(downloadedFiles[0], outFile);
50-
console.log(`[xpi] move to ${outFile}`);
53+
console.log(`[xpi] [${extensionConfig.id}] move to ${outFile}`);
5154
const infoFile = join(releasePath, `${fileName}-config.json`);
5255
await outputJSON(infoFile, {
5356
id: extensionConfig.id,

0 commit comments

Comments
 (0)