@venncity/errors
Advanced tools
Comparing version 1.7.25 to 1.7.26-addDebugLogsToSentry.0
@@ -45,4 +45,7 @@ "use strict"; | ||
if (isSentryEnabled()) { | ||
console.debug('Setting up sentry'); | ||
const tags = buildTags(event, authDetailsFromRequest, context); | ||
const contexts = buildErrorContexts(event); | ||
console.debug('AuthDetailsFromRequest:', authDetailsFromRequest); | ||
console.debug('Contexts: ', contexts, ' Tags: ', tags); | ||
Sentry.configureScope((scope) => { | ||
@@ -59,2 +62,5 @@ if (authDetailsFromRequest.email) { | ||
} | ||
else { | ||
console.debug('Sentry not enabled'); | ||
} | ||
} | ||
@@ -61,0 +67,0 @@ exports.setupSentry = setupSentry; |
@@ -23,4 +23,7 @@ import { get, pick } from 'lodash'; | ||
if (isSentryEnabled()) { | ||
console.debug('Setting up sentry'); | ||
const tags = buildTags(event, authDetailsFromRequest, context); | ||
const contexts = buildErrorContexts(event); | ||
console.debug('AuthDetailsFromRequest:', authDetailsFromRequest); | ||
console.debug('Contexts: ', contexts, ' Tags: ', tags); | ||
Sentry.configureScope((scope) => { | ||
@@ -37,2 +40,5 @@ if (authDetailsFromRequest.email) { | ||
} | ||
else { | ||
console.debug('Sentry not enabled'); | ||
} | ||
} | ||
@@ -39,0 +45,0 @@ // Wrapper for sentry object to allow us to replace the internal implementation in the future |
{ | ||
"name": "@venncity/errors", | ||
"version": "1.7.25", | ||
"version": "1.7.26-addDebugLogsToSentry.0+d7e096c13", | ||
"author": "Venn Engineering", | ||
@@ -36,3 +36,3 @@ "main": "lib/cjs/index.js", | ||
"@sentry/types": "^5.22.3", | ||
"@venncity/nested-config": "^2.0.33", | ||
"@venncity/nested-config": "^2.0.34-addDebugLogsToSentry.0+d7e096c13", | ||
"fast-safe-stringify": "^2.0.7", | ||
@@ -44,3 +44,3 @@ "joi": "^14.3.1", | ||
}, | ||
"gitHead": "f0951070e5701f12b11a5119c3e1fd470f05363b" | ||
"gitHead": "d7e096c13d017891710e69fc9ed4cdb79fecf640" | ||
} |
@@ -30,4 +30,7 @@ import { get, pick } from 'lodash'; | ||
if (isSentryEnabled()) { | ||
console.debug('Setting up sentry'); | ||
const tags = buildTags(event, authDetailsFromRequest, context); | ||
const contexts = buildErrorContexts(event); | ||
console.debug('AuthDetailsFromRequest:', authDetailsFromRequest); | ||
console.debug('Contexts: ', contexts, ' Tags: ', tags); | ||
Sentry.configureScope((scope) => { | ||
@@ -43,2 +46,4 @@ if (authDetailsFromRequest.email) { | ||
}); | ||
} else { | ||
console.debug('Sentry not enabled'); | ||
} | ||
@@ -45,0 +50,0 @@ } |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
212434
3432
2
1