From dbb2227e15c526b0c64faeab8a74d2cc70af1f4a Mon Sep 17 00:00:00 2001 From: Zakhse Date: Sat, 8 Sep 2018 19:03:41 +0300 Subject: [PATCH] fix: disabled option, fixes #29 --- lib/sentry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sentry.js b/lib/sentry.js index 3dc22110..45cf3ac1 100644 --- a/lib/sentry.js +++ b/lib/sentry.js @@ -22,7 +22,7 @@ module.exports = function sentry (moduleOptions) { }, this.options.sentry, moduleOptions) // Don't proceed if it's disabled - if (this.options.disabled) { + if (options.disabled) { logger.info('Disabled because the disabled option is set') return }