Skip to content

Commit 5d05e7f

Browse files
committed
Include procedure type in rate monitor warning
1 parent be57b71 commit 5d05e7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/code/src/main/trpc/trpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const callRateMonitor = trpc.middleware(async ({ path, next, type }) => {
3939

4040
if (timestamps.length >= CALL_RATE_THRESHOLD) {
4141
log.warn(
42-
`[ipc-rate] ${path} called ${timestamps.length} times in ${CALL_RATE_WINDOW_MS}ms`,
42+
`[ipc-rate] ${type} ${path} called ${timestamps.length} times in ${CALL_RATE_WINDOW_MS}ms`,
4343
);
4444
}
4545
}

0 commit comments

Comments
 (0)