Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging of rate-limited requests
The logging code was updated to handle anonymous customers differently than authenticated ones when logging rate limit errors. For anonymous requests, the obscured customer ID is replaced with the string "anonymous" instead of attempting to obscure an empty email address. This avoids exceptions and provides clearer logs when anonymous users hit API limits.
- Loading branch information