Changeset

1656:98a186874806

mod_statistics_statsd: Use module:log()
author Kim Alvefur <zash@zash.se>
date Tue, 07 Apr 2015 22:07:40 +0200
parents 1655:4d38b8c03dfe
children 1657:7116bc76663b
files mod_statistics_statsd/mod_statistics_statsd.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_statistics_statsd/mod_statistics_statsd.lua	Tue Apr 07 22:05:48 2015 +0200
+++ b/mod_statistics_statsd/mod_statistics_statsd.lua	Tue Apr 07 22:07:40 2015 +0200
@@ -9,7 +9,7 @@
 	local metric_strings, remaining_bytes = {}, max_datagram_size;
 	for name, value in pairs(stats) do
 		local value_meta = meta[name];
-		log("warn", "%s %s", name, tostring(value_meta));
+		module:log("warn", "%s %s", name, tostring(value_meta));
 		--if not value_meta then
 			-- Simple value (gauge)
 			local metric_string = ("%s|%d|g"):format(name, value);