Software /
code /
prosody-modules
Diff
mod_statistics_statsd/mod_statistics_statsd.lua @ 1656:98a186874806
mod_statistics_statsd: Use module:log()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 Apr 2015 22:07:40 +0200 |
parent | 1622:b59812aaabad |
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);