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:
parent
1ad6af6f54
commit
f82a3e0245
1 changed files with 2 additions and 0 deletions
|
@ -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/');
|
||||
|
|
Loading…
Add table
Reference in a new issue