MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / loggedCause

Function loggedCause

apps/cloud/src/observability/error-logging.ts:13–13  ·  view source on GitHub ↗
(cause: Cause.Cause<unknown>)

Source from the content-addressed store, hash-verified

11 } chars]`;
12
13const loggedCause = (cause: Cause.Cause<unknown>): string => truncate(Cause.pretty(cause));
14
15const objectValue = (value: unknown, key: string): unknown =>
16 Predicate.hasProperty(value, key) ? value[key] : undefined;

Callers 1

logApiErrorCauseFunction · 0.85

Calls 1

truncateFunction · 0.70

Tested by

no test coverage detected