@@ -78,11 +78,11 @@ class Logger {
|
|||||||
Metrics.increment("logger.warning");
|
Metrics.increment("logger.warning");
|
||||||
|
|
||||||
if (env.SENTRY_DSN) {
|
if (env.SENTRY_DSN) {
|
||||||
Sentry.withScope(function (scope) {
|
Sentry.withScope((scope) => {
|
||||||
scope.setLevel("warning");
|
scope.setLevel("warning");
|
||||||
|
|
||||||
for (const key in extra) {
|
for (const key in extra) {
|
||||||
scope.setExtra(key, extra[key]);
|
scope.setExtra(key, this.sanitize(extra[key]));
|
||||||
}
|
}
|
||||||
|
|
||||||
Sentry.captureMessage(message);
|
Sentry.captureMessage(message);
|
||||||
@@ -118,7 +118,7 @@ class Logger {
|
|||||||
Tracing.setError(error);
|
Tracing.setError(error);
|
||||||
|
|
||||||
if (env.SENTRY_DSN) {
|
if (env.SENTRY_DSN) {
|
||||||
Sentry.withScope(function (scope) {
|
Sentry.withScope((scope) => {
|
||||||
scope.setLevel("error");
|
scope.setLevel("error");
|
||||||
|
|
||||||
for (const key in extra) {
|
for (const key in extra) {
|
||||||
@@ -126,7 +126,7 @@ class Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request) {
|
if (request) {
|
||||||
scope.addEventProcessor(function (event) {
|
scope.addEventProcessor((event) => {
|
||||||
return Sentry.Handlers.parseRequest(event, request);
|
return Sentry.Handlers.parseRequest(event, request);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -505,7 +505,7 @@
|
|||||||
"Anyone with the link can view this document": "Anyone with the link can view this document",
|
"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 }}.",
|
"The shared link was last accessed {{ timeAgo }}.": "The shared link was last accessed {{ timeAgo }}.",
|
||||||
"Share this document": "Share this document",
|
"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",
|
"Share nested documents": "Share nested documents",
|
||||||
"Nested documents are publicly available": "Nested documents are publicly available",
|
"Nested documents are publicly available": "Nested documents are publicly available",
|
||||||
"Nested documents are not shared": "Nested documents are not shared",
|
"Nested documents are not shared": "Nested documents are not shared",
|
||||||
|
|||||||
Reference in New Issue
Block a user