Skip to content

Commit f03d34b

Browse files
authored
Rearrange enableLogs to be above integrations according to ESLint
1 parent 1d232d2 commit f03d34b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry-init.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ const Sentry = require('@sentry/node');
44

55
Sentry.init({
66
dsn: process.env.SENTRY_DSN,
7+
// Logging
8+
enableLogs: process.env.SENTRY_LOGGING === 'true',
79
integrations: [
810
// Send console logs to Sentry
911
Sentry.consoleLoggingIntegration({ levels: ["log", "warn", "error"] }),
1012
// Profiling
1113
nodeProfilingIntegration(),
1214
],
13-
// Logging
14-
enableLogs: process.env.SENTRY_LOGGING === 'true',
15-
15+
1616
// Profiling
1717
profileLifecycle: 'trace',
1818
profileSessionSampleRate: parseFloat(process.env.SENTRY_PROFILING_RATE?? 1.0),

0 commit comments

Comments
 (0)