Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 16f4681

Browse files
committed
Check if app.get('sentry') is defined
Don't require it in the config file
1 parent f927306 commit 16f4681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app.configure(require('feathers-logger')(logger));
2727
// Load app configuration
2828
app.configure(configuration(path.join(__dirname, '..')));
2929

30-
if (app.get('sentry').dns !== undefined && app.get('sentry').dns !== 'SENTRY_DNS') {
30+
if (app.get('sentry') && app.get('sentry').dns !== undefined && app.get('sentry').dns !== 'SENTRY_DNS') {
3131
// LOGGING IS ENABLED
3232
app.info('SENTRY LOGGING IS ENABLED');
3333

0 commit comments

Comments
 (0)