diff --git a/server/logging/Logger.ts b/server/logging/Logger.ts index 514963a18..10a862739 100644 --- a/server/logging/Logger.ts +++ b/server/logging/Logger.ts @@ -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); }); } diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 775e25a57..eef17c74c 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -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}is publicly shared.": "This document is shared because the parent<1>{documentTitle}is publicly shared.", + "This document is shared because the parent <2>{documentTitle} is publicly shared.": "This document is shared because the parent <2>{documentTitle} 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",