Skip to content

Commit

Permalink
Merge pull request #580 from meetqy/579-sentry-启动应用异常没有上报
Browse files Browse the repository at this point in the history
移除 Sentry.captureException 等有额度了再次测试
  • Loading branch information
meetqy authored Dec 15, 2023
2 parents 0c1345a + e6563e3 commit b27488b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
1 change: 0 additions & 1 deletion packages/rlog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@rao-pics/eslint-config": "workspace:*",
"@rao-pics/prettier-config": "workspace:*",
"@rao-pics/tsconfig": "workspace:*",
"@sentry/electron": "^4.14.0",
"cross-env": "^7.0.3",
"eslint": "^8.47.0",
"typescript": "^5.1.6"
Expand Down
3 changes: 0 additions & 3 deletions packages/rlog/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export const RLogger = {
const message = e instanceof Error ? e.message : JSON.stringify(e);

console.log(chalk.red(`✖ ${t} ${message}`));
void import("@sentry/electron").then((Sentry) => {
Sentry.captureException(e);
});

callback?.(t, message);
},
Expand Down
48 changes: 27 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b27488b

Please sign in to comment.