Software /
code /
prosody
Changeset
7921:1821a7cabaa5
tests/util.logger: Remove use of deprecated module function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 27 Feb 2017 15:17:12 +0100 |
parents | 7920:1db51061342b |
children | 7922:2fd20f372cb1 |
files | tests/util/logger.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/util/logger.lua Mon Feb 27 14:55:01 2017 +0100 +++ b/tests/util/logger.lua Mon Feb 27 15:17:12 2017 +0100 @@ -14,7 +14,8 @@ 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 @@ 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