zilencer: Switch a log message back from %r to %s.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-03-08 22:26:45 -08:00 committed by Anders Kaseorg
parent 2d9b2a2a05
commit 3bfbfb014a
2 changed files with 2 additions and 2 deletions

View File

@ -435,7 +435,7 @@ class RateLimitTests(ZulipTestCase):
self.assertEqual( self.assertEqual(
m.output, m.output,
[ [
f"WARNING:zilencer.auth:Remote server <RemoteZulipServer: demo.example.com {server_uuid[:12]}> exceeded rate limits on domain api_by_remote_server" f"WARNING:zilencer.auth:Remote server demo.example.com {server_uuid[:12]} exceeded rate limits on domain api_by_remote_server"
], ],
) )
finally: finally:

View File

@ -61,7 +61,7 @@ def rate_limit_remote_server(
try: try:
RateLimitedRemoteZulipServer(remote_server, domain=domain).rate_limit_request(request) RateLimitedRemoteZulipServer(remote_server, domain=domain).rate_limit_request(request)
except RateLimitedError as e: except RateLimitedError as e:
logger.warning("Remote server %r exceeded rate limits on domain %s", remote_server, domain) logger.warning("Remote server %s exceeded rate limits on domain %s", remote_server, domain)
raise e raise e