From 8fb782c95679295de71b11bf69488bc707d48e13 Mon Sep 17 00:00:00 2001 From: Pangratios Cosma Date: Thu, 21 Nov 2024 09:00:44 +0200 Subject: [PATCH] chore(plugin-code): check for silent flag Closes: #1417 --- packages/plugin-core/src/sourcemaps.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/plugin-core/src/sourcemaps.ts b/packages/plugin-core/src/sourcemaps.ts index 1ccdd117..397c7c1b 100644 --- a/packages/plugin-core/src/sourcemaps.ts +++ b/packages/plugin-core/src/sourcemaps.ts @@ -36,7 +36,9 @@ export async function uploadSourcemaps(sourcemapData: SourcemapInfo[], hbOptions throw new Error(`Failed to upload ${rejected.length} sourcemap file(s) to Honeybadger\n${errorsStr}`) } - console.info(`Note: For the error to be matched with a source map, the revisions must match. You can learn how to configure honeybadger.js to include the revision here: ${DOCS_VERSIONING_URL}`) + if (!hbOptions.silent) { + console.info(`Note: For the error to be matched with a source map, the revisions must match. You can learn how to configure honeybadger.js to include the revision here: ${DOCS_VERSIONING_URL}`) + } return fulfilled.map(p => p.value) }