add sentry logging

This commit is contained in:
Brian Gough 2016-03-23 13:47:28 +00:00
parent 0a94d1e475
commit bf2e1dfbfe
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,9 @@
Settings = require 'settings-sharelatex'
logger = require 'logger-sharelatex'
logger.initialize("spelling-sharelatex")
if Settings.sentry?.dsn?
logger.initializeErrorReporting(Settings.sentry.dsn)
SpellingAPIController = require './app/js/SpellingAPIController'
express = require('express')
Path = require("path")

View file

@ -14,7 +14,7 @@
"express": "^4.12.1",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0",
"lru-cache": "^4.0.0",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.3.0",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.5.0",
"mongojs": "1.3.0",
"node-statsd": "0.0.3",
"redis": "~0.8.4",