Unverified Commit 06f67dc2 authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

Log countryCodes in BridgeRing.getBridges().

This is to see if they are ever actually passed into this function. They
weren't being used anywhere inside BridgeRing.getBridges(), nor anywhere
else.
parent c9530782
......@@ -853,6 +853,14 @@ class BridgeRing(BridgeHolder):
:rtype: list
:returns: A list of :class:`~bridgedb.Bridges.Bridge`s.
"""
# XXX This can be removed after we determine if countryCode is ever
# actually being used. It seems the countryCode should be passed in
# from bridgedb.HTTPServer.WebResource.getBridgeRequestAnswer() in
# order to hand out bridges which are believed to not be blocked in a
# given country.
if countryCode:
logging.debug("getBridges: countryCode=%r" % countryCode)
forced = []
for _, _, count, subring in self.subrings:
if len(subring) < count:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment