Skip to content

Commit

Permalink
Improve Socket Throttling logging (#4845)
Browse files Browse the repository at this point in the history
  • Loading branch information
znewton authored Jan 19, 2021
1 parent d2d20b6 commit 0cd2300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routerlicious/packages/lambdas/src/alfred/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@ function checkThrottle(
const messageMetaData = {
key: throttleId,
weight: 1,
event_type: "throttling",
eventName: "throttling",
};

try {
logger?.info(`Incrementing throttle count: ${throttleId}`, { messageMetaData });
throttler.incrementCount(throttleId);
} catch (e) {
if (e instanceof core.ThrottlingError) {
Expand Down

0 comments on commit 0cd2300

Please sign in to comment.