avoid uninitialised last error timestamp

This commit is contained in:
Brian Gough 2017-02-23 09:42:01 +00:00
parent 6e3f102fb2
commit 68b941357e

View file

@ -10,6 +10,7 @@ module.exports = Logger =
initializeErrorReporting: (sentry_dsn, options) -> initializeErrorReporting: (sentry_dsn, options) ->
raven = require "raven" raven = require "raven"
@raven = new raven.Client(sentry_dsn, options) @raven = new raven.Client(sentry_dsn, options)
@lastErrorTimeStamp = 0 # for rate limiting on sentry reporting
captureException: (attributes, message, level) -> captureException: (attributes, message, level) ->
# handle case of logger.error "message" # handle case of logger.error "message"