Diff

plugins/mod_limits.lua @ 10111:0f335815244f

plugins: Remove tostring call from logging Taken care of by loggingmanager now Mass-rewrite using lua pattern like `tostring%b()`
author Kim Alvefur <zash@zash.se>
date Tue, 30 Jul 2019 02:29:36 +0200 (2019-07-30)
parent 10099:7e3196e0263e
child 10551:27b275633156
line wrap: on
line diff
--- a/plugins/mod_limits.lua	Tue Jul 30 02:24:06 2019 +0200
+++ b/plugins/mod_limits.lua	Tue Jul 30 02:29:36 2019 +0200
@@ -32,7 +32,7 @@
 	end
 	local n_burst = tonumber(burst);
 	if not n_burst then
-		module:log("error", "Unable to parse burst for %s: %q, using default burst interval (%ds)", sess_type, tostring(burst), default_burst);
+		module:log("error", "Unable to parse burst for %s: %q, using default burst interval (%ds)", sess_type, burst, default_burst);
 	end
 	return n_burst or default_burst;
 end