MCPcopy
hub / github.com/pezzolabs/pezzo / error

Method error

apps/server/src/app/logger/pino-logger.ts:41–55  ·  view source on GitHub ↗
(obj: any, msg?: any)

Source from the content-addressed store, hash-verified

39 error<T extends object>(obj: T, msg?: string): void;
40 error(msg: string): void;
41 error(obj: any, msg?: any): void {
42 if (typeof obj === "string") {
43 this.logger.error(obj);
44 } else {
45 if (obj.error && obj.error instanceof Error) {
46 obj = {
47 ...obj,
48 message: obj.error.message,
49 stack: obj.error.stack,
50 };
51 }
52
53 this.logger.error(obj, msg);
54 }
55 }
56
57 warn<T extends object>(obj: T, msg?: string): void;
58 warn(msg: string): void;

Callers 15

invariantFunction · 0.80
publish.mjsFile · 0.80
onModuleInitMethod · 0.80
reportRequestMethod · 0.80
saveReportMethod · 0.80
getReportsMethod · 0.80
reportMethod · 0.80
paginatedRequestsMethod · 0.80
publishPromptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected