mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Turning off Sentry on socket.io
This commit is contained in:
parent
1897784007
commit
b469f0dd67
2 changed files with 2 additions and 4 deletions
|
@ -24,11 +24,10 @@ unread_counts = require('./unread_counts.js').unread_counts
|
|||
if not ENV_DEV and not ENV_PROD and not ENV_DOCKER
|
||||
throw new Error("Set envvar NODE_ENV=<development,docker,production>")
|
||||
|
||||
if ENV_PROD or ENV_DEV or ENV_DOCKER
|
||||
if false
|
||||
Sentry.init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
debug: true,
|
||||
tracesSampleRate: 1.0,
|
||||
serverName: process.env.SERVER_NAME
|
||||
})
|
||||
|
||||
|
|
|
@ -45,11 +45,10 @@
|
|||
throw new Error("Set envvar NODE_ENV=<development,docker,production>");
|
||||
}
|
||||
|
||||
if (ENV_PROD || ENV_DEV || ENV_DOCKER) {
|
||||
if (false) {
|
||||
Sentry.init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
debug: true,
|
||||
tracesSampleRate: 1.0,
|
||||
serverName: process.env.SERVER_NAME
|
||||
});
|
||||
app.get("/debug", function(req, res) {
|
||||
|
|
Loading…
Add table
Reference in a new issue