From 68b941357ef22271ff87d36a4c6f9f3cee1510b8 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 23 Feb 2017 09:42:01 +0000 Subject: [PATCH] avoid uninitialised last error timestamp --- libraries/logger/logging-manager.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/logger/logging-manager.coffee b/libraries/logger/logging-manager.coffee index 33f3ce8c49..3d6c3910c5 100644 --- a/libraries/logger/logging-manager.coffee +++ b/libraries/logger/logging-manager.coffee @@ -10,6 +10,7 @@ module.exports = Logger = initializeErrorReporting: (sentry_dsn, options) -> raven = require "raven" @raven = new raven.Client(sentry_dsn, options) + @lastErrorTimeStamp = 0 # for rate limiting on sentry reporting captureException: (attributes, message, level) -> # handle case of logger.error "message"