MCPcopy Create free account
hub / github.com/material-shell/material-shell / logAsyncException

Function logAsyncException

src/utils/log.ts:7–17  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

5 * ensure any errors are logged.
6 */
7export function logAsyncException(e: any) {
8 if (e instanceof Error) {
9 Debug.log(
10 `\nException when running asynchronous function:\n${e}\n${e.stack}\n`
11 );
12 } else {
13 Debug.logWithStackTrace(
14 `\nException when running asynchronous function: ${e}\n`
15 );
16 }
17}
18
19export function mslog(...args: unknown[]) {
20 Debug.log(...args);

Callers

nothing calls this directly

Calls 2

logWithStackTraceMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected