mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
No hipchat for analytics.log.event post errors
This commit is contained in:
parent
18f44e1600
commit
71e66c4d61
1 changed files with 4 additions and 1 deletions
|
@ -43,10 +43,13 @@ module.exports.setup = (app) ->
|
|||
handler[req.route.method](req, res, parts[1..]...)
|
||||
catch error
|
||||
errorMessage = "Error trying db method #{req?.route?.method} route #{parts} from #{name}: #{error}"
|
||||
# TODO: add user info to this log
|
||||
log.error(errorMessage)
|
||||
log.error(error)
|
||||
log.error(error.stack)
|
||||
hipchat.sendTowerHipChatMessage errorMessage
|
||||
# TODO: Generally ignore this error: error: Error trying db method get route analytics.log.event from undefined: Error: Cannot find module '../undefined'
|
||||
unless "#{parts}" is 'analytics.log.event'
|
||||
hipchat.sendTowerHipChatMessage errorMessage
|
||||
errors.notFound(res, "Route #{req?.path} not found.")
|
||||
|
||||
getSchema = (req, res, moduleName) ->
|
||||
|
|
Loading…
Reference in a new issue