Changeset

2243:f388747c53c7

mod_log_rate: Fix to actually use module methods
author Kim Alvefur <zash@zash.se>
date Tue, 19 Jul 2016 00:01:58 +0200
parents 2242:3f75f892a41e
children 2244:e0663dcd934d
files mod_log_rate/mod_log_rate.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_log_rate/mod_log_rate.lua	Thu Jul 14 17:42:31 2016 +0200
+++ b/mod_log_rate/mod_log_rate.lua	Tue Jul 19 00:01:58 2016 +0200
@@ -2,10 +2,10 @@
 
 local function sink_maker(config)
 	local levels = {
-		debug = measure("log.debug", "rate");
-		info = measure("log.info", "rate");
-		warn = measure("log.warn", "rate");
-		error = measure("log.error", "rate");
+		debug = module:measure("log.debug", "rate");
+		info = module:measure("log.info", "rate");
+		warn = module:measure("log.warn", "rate");
+		error = module:measure("log.error", "rate");
 	};
 	return function (_, level)
 		return levels[level]();