commit bfe5428dcfcc39d65045ed3f8da0d741a3ceed95 Author: aagbsn aagbsn@extc.org Date: Tue Feb 28 14:50:54 2012 -0800
4297 - reduce warning severity for ratelimiting
Drop to INFO, because these are not WARN --- lib/bridgedb/Dist.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bridgedb/Dist.py b/lib/bridgedb/Dist.py index 95fe0b5..d393ee2 100644 --- a/lib/bridgedb/Dist.py +++ b/lib/bridgedb/Dist.py @@ -338,14 +338,14 @@ class EmailBasedDistributor(bridgedb.Bridges.BridgeHolder): lastSaw = db.getEmailTime(emailaddress) if lastSaw is not None and lastSaw + MAX_EMAIL_RATE >= now: if wasWarned: - logging.warn("Got a request for bridges from %r; we already " + logging.info("Got a request for bridges from %r; we already " "sent a warning. Ignoring.", emailaddress) raise IgnoreEmail("Client was warned", emailaddress) else: db.setWarnedEmail(emailaddress, True, now) db.commit()
- logging.warn("Got a request for bridges from %r; we already " + logging.info("Got a request for bridges from %r; we already " "answered one within the last %d seconds. Warning.", emailaddress, MAX_EMAIL_RATE) raise TooSoonEmail("Too many emails; wait till later", emailaddress)
tor-commits@lists.torproject.org