Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(plugin-core): print source map revisions message #1418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

subzero10
Copy link
Member

Status

READY

Description

Prints a message on successful source maps upload to remind users that Honeybadger needs to be configured with the same revision in order for source maps to match.

Closes: #1417

@subzero10 subzero10 self-assigned this Nov 16, 2024
@subzero10 subzero10 changed the title chore(plugin-code): print source map revisions message chore(plugin-core): print source map revisions message Nov 18, 2024
@@ -33,19 +35,21 @@ export async function uploadSourcemaps(sourcemapData: SourcemapInfo[], hbOptions
const errorsStr = rejected.map(p => p.reason).join('\n')
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}`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we're checking an hbOptions.silent config option for the success message logging. I think we should also respect that here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered that too, but the silent option is like a debug/verbose flag. My understanding was that we would print this message at all times, not only in debug mode. I don't have a strong opinion though, we can check for silent here as well. Let me know if you want me to go for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print console message on source maps upload to remind users that revisions need to match
2 participants