fix: Context binding,

closes #5056
This commit is contained in:
Tom Moor
2023-03-18 09:17:25 -04:00
parent b68eba4b63
commit 6dd4afccaf
2 changed files with 5 additions and 5 deletions

View File

@@ -78,11 +78,11 @@ class Logger {
Metrics.increment("logger.warning");
if (env.SENTRY_DSN) {
Sentry.withScope(function (scope) {
Sentry.withScope((scope) => {
scope.setLevel("warning");
for (const key in extra) {
scope.setExtra(key, extra[key]);
scope.setExtra(key, this.sanitize(extra[key]));
}
Sentry.captureMessage(message);
@@ -118,7 +118,7 @@ class Logger {
Tracing.setError(error);
if (env.SENTRY_DSN) {
Sentry.withScope(function (scope) {
Sentry.withScope((scope) => {
scope.setLevel("error");
for (const key in extra) {
@@ -126,7 +126,7 @@ class Logger {
}
if (request) {
scope.addEventProcessor(function (event) {
scope.addEventProcessor((event) => {
return Sentry.Handlers.parseRequest(event, request);
});
}

View File

@@ -505,7 +505,7 @@
"Anyone with the link can view this document": "Anyone with the link can view this document",
"The shared link was last accessed {{ timeAgo }}.": "The shared link was last accessed {{ timeAgo }}.",
"Share this document": "Share this document",
"This document is shared because the parent<1>{documentTitle}</1>is publicly shared.": "This document is shared because the parent<1>{documentTitle}</1>is publicly shared.",
"This document is shared because the parent <2>{documentTitle}</2> is publicly shared.": "This document is shared because the parent <2>{documentTitle}</2> is publicly shared.",
"Share nested documents": "Share nested documents",
"Nested documents are publicly available": "Nested documents are publicly available",
"Nested documents are not shared": "Nested documents are not shared",