Skip to content

Commit

Permalink
Disable sentry for local dev by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Nov 20, 2024
1 parent 7fb4935 commit 6c9a25a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .env_example
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ USE_EXTERNAL_SERVER=false
DEV_SERVER_URL=http://192.168.2.20:5173

# The level of logging to use.
LOG_LEVEL=debug
LOG_LEVEL=debug

# Send events to Sentry
SENTRY_ENABLED=false
5 changes: 4 additions & 1 deletion .env_test_example
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ COMFY_HOST=localhost
COMFY_PORT=5173

# Whether to use an external server instead of starting one locally.
USE_EXTERNAL_SERVER=true
USE_EXTERNAL_SERVER=true

# Send events to Sentry
SENTRY_ENABLED=false
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
assets
.vite
scripts
.env_*
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ let alwaysSendCrashReports = false;
Sentry.init({
dsn: SENTRY_URL_ENDPOINT,
autoSessionTracking: false,
enabled: process.env.SENTRY_ENABLED === 'true' || app.isPackaged,
beforeSend: async (event, hint) => {
if (event.extra?.comfyUIExecutionError || alwaysSendCrashReports) {
return event;
Expand Down

0 comments on commit 6c9a25a

Please sign in to comment.