MCPcopy Index your code
hub / github.com/zenstackhq/zenstack / logInternalError

Function logInternalError

packages/server/src/adapter/common.ts:15–21  ·  view source on GitHub ↗
(logger: LogConfig | undefined, err: unknown)

Source from the content-addressed store, hash-verified

13}
14
15export function logInternalError(logger: LogConfig | undefined, err: unknown) {
16 log(
17 logger,
18 'error',
19 `An unhandled error occurred while processing the request: ${err}${err instanceof Error ? '\n' + err.stack : ''}`,
20 );
21}

Callers 10

createElysiaHandlerFunction · 0.90
pluginHandlerFunction · 0.90
createHonoHandlerFunction · 0.90
createEventHandlerFunction · 0.90
factoryFunction · 0.90
createHandlerFunction · 0.90
createHandlerFunction · 0.90
factoryFunction · 0.90
factoryFunction · 0.90
factoryFunction · 0.90

Calls 1

logFunction · 0.90

Tested by

no test coverage detected