0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Added console logs to debug Sentry stack traces in Admin (#18776)

no issue

- Our stack traces in Sentry are pointing to the wrong location for source code files. We attempted to fix this [here](https://github.com/TryGhost/Ghost/pull/18773) but this didn't work as expected in staging for some reason
- This commit just adds a few console logs to help with debugging in staging so we can figure out what's going wrong
This commit is contained in:
Chris Raible 2023-10-26 12:11:45 -07:00 committed by GitHub
parent 1ad6af6f54
commit f82a3e0245
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,6 +184,8 @@ export default Route.extend(ShortcutsRoute, {
integrations: [
new RewriteFrames({
iteratee: (frame) => {
console.log('frame: ', frame); // eslint-disable-line no-console
console.log('cdnUrl: ', appConfig.cdnUrl); // eslint-disable-line no-console
// Remove duplicate `assets/` from CDN file paths (unsure why this occurs though)
if (frame.filename?.startsWith(appConfig.cdnUrl) && frame.filename?.includes('assets/assets/')) {
frame.filename = frame.filename.replace('assets/assets/', 'assets/');