winston-transport-sentry-node
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -6,2 +6,3 @@ import * as Sentry from "@sentry/node"; | ||
levelsMap?: SeverityOptions; | ||
skipSentryInit?: boolean; | ||
} | ||
@@ -8,0 +9,0 @@ interface SeverityOptions { |
@@ -41,3 +41,5 @@ "use strict"; | ||
this.silent = (opts && opts.silent) || false; | ||
Sentry.init(SentryTransport.withDefaults((opts && opts.sentry) || {})); | ||
if (!opts || !opts.skipSentryInit) { | ||
Sentry.init(SentryTransport.withDefaults(opts && opts.sentry || {})); | ||
} | ||
} | ||
@@ -44,0 +46,0 @@ log(info, callback) { |
{ | ||
"name": "winston-transport-sentry-node", | ||
"description": "@sentry/node transport for the winston v3 logger", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"author": "Andrew Avdeev <andrewww.avdeev@gmail.com>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -18,2 +18,3 @@ import * as Sentry from "@sentry/node"; | ||
levelsMap?: SeverityOptions; | ||
skipSentryInit?: boolean; | ||
} | ||
@@ -46,3 +47,6 @@ | ||
this.silent = (opts && opts.silent) || false; | ||
Sentry.init(SentryTransport.withDefaults((opts && opts.sentry) || {})); | ||
if (!opts || !opts.skipSentryInit) { | ||
Sentry.init(SentryTransport.withDefaults(opts && opts.sentry || {})); | ||
} | ||
} | ||
@@ -49,0 +53,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24857
262