mirror of https://github.com/zulip/zulip.git
zilencer: Switch a log message back from %r to %s.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
2d9b2a2a05
commit
3bfbfb014a
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue