1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix typos

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen 2021-07-13 09:33:09 +03:00
parent 08f3dcabcd
commit 450376c778
No known key found for this signature in database
GPG Key ID: 54B44603D251B788

View File

@ -63,7 +63,7 @@ const isLoggerError = (unknown: unknown, key: LoggerKeys): unknown is LoggerErro
/** /**
* Proxied version of logger * Proxied version of logger
* *
* Captures error message using Sentry.captureException(...params) when logger.error(...params) * Captures error message using Sentry.captureMessage(...params) when logger.error(...params)
*/ */
const proxiedLogger: Logger = new Proxy(logger, { const proxiedLogger: Logger = new Proxy(logger, {
get(target: Logger, key: LoggerKeys) { get(target: Logger, key: LoggerKeys) {
@ -91,7 +91,7 @@ const proxiedLogger: Logger = new Proxy(logger, {
extra: extra ? { ...extra } : null extra: extra ? { ...extra } : null
}); });
} catch { } catch {
// fallback to just captureException(params) (issue will have 'unknown' title in Sentry dashbaird) // fallback to just captureException(params) (issue will have 'unknown' title in Sentry dashboard)
Sentry.captureException(params, { tags }); Sentry.captureException(params, { tags });
} }
}; };