Opened 7 years ago

Closed 6 years ago

#7800 closed enhancement (implemented)

Easier interface to rate-limited logs

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: 0.2.4.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-relay small-feature
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

It's a shame how much code we need to do a rate-limited log message. Duplicated code is usually a sign that a function somewhere is missing. Let's fix that.

Please have a look at branch easy_ratelim in my public repository, which introduces a convenience log_fn_ratelim() function, and uses it in a few places. Please review.

Child Tickets

Change History (2)

comment:1 Changed 6 years ago by nickm

Status: newneeds_review

comment:2 Changed 6 years ago by nickm

Resolution: implemented
Status: needs_reviewclosed

merged after review by Andrea. Thanks!

Note: See TracTickets for help on using tickets.