diff --git a/zerver/tests/test_external.py b/zerver/tests/test_external.py index 8986564f32..4049cdf81b 100644 --- a/zerver/tests/test_external.py +++ b/zerver/tests/test_external.py @@ -435,7 +435,7 @@ class RateLimitTests(ZulipTestCase): self.assertEqual( m.output, [ - f"WARNING:zilencer.auth:Remote server 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: diff --git a/zilencer/auth.py b/zilencer/auth.py index 2d7f093694..34786987f7 100644 --- a/zilencer/auth.py +++ b/zilencer/auth.py @@ -61,7 +61,7 @@ def rate_limit_remote_server( try: RateLimitedRemoteZulipServer(remote_server, domain=domain).rate_limit_request(request) 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