X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=tests%2Futil%2Flogger.lua;h=35facd4e45ae0472e3a9eeb0908920b778f5fade;hb=c269396a37a8bef1b71982f2cdd336324eb72d07;hp=e62a1aa8ccca4c991e60d09b4ddea2b099886eca;hpb=3813f633eebc075fc0cf3db4c7da4f24f49e5bc0;p=prosody.git diff --git a/tests/util/logger.lua b/tests/util/logger.lua index e62a1aa8..35facd4e 100644 --- a/tests/util/logger.lua +++ b/tests/util/logger.lua @@ -33,7 +33,7 @@ function init(name) local inf = debug.getinfo(3, 'Snl'); level = level .. ","..tostring(inf.short_src):match("[^/]*$")..":"..inf.currentline; end - if ... then + if ... then print(name, getstring(logstyles[level], level), format(message, ...)); else print(name, getstring(logstyles[level], level), message);