fix sentry initialisation

This commit is contained in:
Brian Gough 2017-06-06 09:49:38 +01:00
parent 009f8a3eae
commit 5c8291a8da

View file

@ -1,12 +1,12 @@
logger = require "logger-sharelatex" logger = require "logger-sharelatex"
logger.initialize("real-time-sharelatex") logger.initialize("real-time-sharelatex")
if Settings.sentry?.dsn?
logger.initializeErrorReporting(Settings.sentry.dsn)
express = require("express") express = require("express")
session = require("express-session") session = require("express-session")
redis = require("redis-sharelatex") redis = require("redis-sharelatex")
Settings = require "settings-sharelatex" Settings = require "settings-sharelatex"
if Settings.sentry?.dsn?
logger.initializeErrorReporting(Settings.sentry.dsn)
sessionRedisClient = redis.createClient(Settings.redis.websessions) sessionRedisClient = redis.createClient(Settings.redis.websessions)