diff --git a/services/clsi/app.coffee b/services/clsi/app.coffee index bd0a5864a9..7412c7f7ec 100644 --- a/services/clsi/app.coffee +++ b/services/clsi/app.coffee @@ -2,6 +2,9 @@ CompileController = require "./app/js/CompileController" Settings = require "settings-sharelatex" logger = require "logger-sharelatex" logger.initialize("clsi") +if Settings.sentry?.dsn? + logger.initializeErrorReporting(Settings.sentry.dsn) + smokeTest = require "smoke-test-sharelatex" ContentTypeMapper = require "./app/js/ContentTypeMapper" @@ -63,6 +66,11 @@ app.get "/project/:project_id/output/*", (req, res, next) -> req.url = "/#{req.params.project_id}/#{req.params[0]}" staticServer(req, res, next) +app.get "/oops", (req, res, next) -> + logger.error {err: "hello"}, "test error" + res.send "error\n" + + app.get "/status", (req, res, next) -> res.send "CLSI is alive\n" diff --git a/services/clsi/package.json b/services/clsi/package.json index 33560b5997..b5b1c9b6c6 100644 --- a/services/clsi/package.json +++ b/services/clsi/package.json @@ -13,7 +13,7 @@ "mkdirp": "0.3.5", "mysql": "2.6.2", "request": "~2.21.0", - "logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.0.0", + "logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.4.0", "settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0", "metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.5.0", "sequelize": "^2.1.3",