Diff

mod_log_slow_events/mod_log_slow_events.lua @ 1695:78b3b3add19c

mod_log_slow_events: Minor improvement to log message
author Matthew Wild <mwild1@gmail.com>
date Tue, 05 May 2015 14:20:53 +0100
parent 1680:a9df1f7e273d
child 1696:efc1d674eac0
line wrap: on
line diff
--- a/mod_log_slow_events/mod_log_slow_events.lua	Tue May 05 13:58:37 2015 +0100
+++ b/mod_log_slow_events/mod_log_slow_events.lua	Tue May 05 14:20:53 2015 +0100
@@ -29,7 +29,7 @@
 				log_data("stanza", tostring(stanza));
 			end
 		end
-		module:log("warn", "Slow event '%s' took %0.2f: %s", event_name, duration, next(data) and table.concat(data, ", ") or "no recognised data");
+		module:log("warn", "Slow event '%s' took %0.2fs: %s", event_name, duration, next(data) and table.concat(data, ", ") or "no recognised data");
 	end
 	return ret;
 end);