diff options
author | Kim Alvefur <zash@zash.se> | 2017-02-27 15:17:12 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-02-27 15:17:12 +0100 |
commit | fc3b5c40915ff371a5e27d32b910f897c10e0f89 (patch) | |
tree | bb3594802e4225a320655f699457c4651892e4e6 /tests | |
parent | 789026067573c961f96f9f5db83faf7346946b62 (diff) | |
download | prosody-fc3b5c40915ff371a5e27d32b910f897c10e0f89.tar.gz prosody-fc3b5c40915ff371a5e27d32b910f897c10e0f89.zip |
tests/util.logger: Remove use of deprecated module function
Diffstat (limited to 'tests')
-rw-r--r-- | tests/util/logger.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/util/logger.lua b/tests/util/logger.lua index c133e332..44860d5d 100644 --- a/tests/util/logger.lua +++ b/tests/util/logger.lua @@ -14,7 +14,8 @@ local tostring = tostring; local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; local do_pretty_printing = not os.getenv("WINDIR"); -module "logger" +local _ENV = nil +local _M = {} local logstyles = {}; @@ -25,7 +26,7 @@ if do_pretty_printing then logstyles["error"] = getstyle("bold", "red"); end -function init(name) +function _M.init(name) --name = nil; -- While this line is not commented, will automatically fill in file/line number info return function (level, message, ...) if level == "debug" or level == "info" then return; end |