We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b361384 commit 5dd71ccCopy full SHA for 5dd71cc
api/src/rpc/router.ts
@@ -60,7 +60,11 @@ export function createRouter(params: {
60
const durationMs = Date.now() - start;
61
const meta = { "path": opts.path, "type": opts.type, durationMs };
62
63
- result.ok ? console.log("OK request timing:", meta) : console.error("Non-OK request timing", meta);
+ if (result.ok) {
64
+ console.log("OK request timing:", meta);
65
+ } else {
66
+ console.error("Non-OK request timing", { meta, error: result.error });
67
+ }
68
69
return result;
70
})
0 commit comments