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

Replace paths in events #340

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Replace paths in events #340

merged 4 commits into from
Nov 26, 2024

Conversation

pythongosssss
Copy link
Member

Remove instances of basePath from events

Copy link
Member

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

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

Let's do following refactor on Sentry logic to make things easier to handle.

  • A global instance of sentry object that has a field comfyDesktopApp.
  • Access basePath and alwaysSendCrashReports value from comfyDesktopApp
  • When comfyDesktopApp is available, inject it to the global sentry instance

This way we reduce the issue of having increasing number of floating global variables.

@huchenlei huchenlei merged commit ad1f7f6 into main Nov 26, 2024
6 checks passed
@huchenlei huchenlei deleted the error-filter-paths branch November 26, 2024 16:30
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.

2 participants