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:
parent
08f3dcabcd
commit
450376c778
@ -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 });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user