Skip to content

Commit

Permalink
chore(plugin-code): check for silent flag
Browse files Browse the repository at this point in the history
Closes: #1417
  • Loading branch information
subzero10 committed Nov 21, 2024
1 parent 71ef1bd commit 8fb782c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin-core/src/sourcemaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8fb782c

Please sign in to comment.