# HG changeset patch # User Georg Lukas # Date 1554215234 -7200 # Node ID 1bb2a90398d3cf3653ca23f455fd38a014670a16 # Parent 4d8a68557941b4e76ced80ea40c088ff7fdaaad5 mod_limits: log throttled JID diff -r 4d8a68557941 -r 1bb2a90398d3 mod_limits/mod_limits.lua --- a/mod_limits/mod_limits.lua Tue Apr 02 16:19:11 2019 +0200 +++ b/mod_limits/mod_limits.lua Tue Apr 02 16:27:14 2019 +0200 @@ -59,7 +59,7 @@ if throttle then local ok, balance, outstanding = throttle:poll(#bytes, true); if not ok then - session.log("debug", "Session over rate limit (%d) with %d (by %d), pausing", throttle.max, #bytes, outstanding); + session.log("debug", "Session %q over rate limit (%d) with %d (by %d), pausing", session.full_jid or session.from_host or session.to_host, throttle.max, #bytes, outstanding); outstanding = ceil(outstanding); session.conn:pause(); -- Read no more data from the connection until there is no outstanding data local outstanding_data = bytes:sub(-outstanding);