MCPcopy
hub / github.com/blitz-js/blitz / postResponse

Method postResponse

packages/blitz-rpc/src/rpc-logger.ts:153–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152 }
153 public postResponse() {
154 if (this.#state.verbosityInfo) {
155 this.#logger.info(
156 this.#customChalk.dim(
157 `Finished: resolver:${prettyMs(this.#state.duration.resolver)} serializer:${prettyMs(
158 this.#state.duration.serializer,
159 )} total:${prettyMs(this.#state.duration.total)}`,
160 ),
161 )
162 }
163 newLine()
164 }
165 public error(e: any) {
166 if (typeof e === "string" || e instanceof Error) {
167 this.#logger.error(e)

Callers 2

rpcHandlerFunction · 0.95
invokeFunction · 0.95

Calls 2

prettyMsFunction · 0.90
newLineFunction · 0.90

Tested by

no test coverage detected