1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-26 01:18:22 +01:00

fix logging API bug
All checks were successful
gitea-sync/antd-lua-plugin/pipeline/head This commit looks good

This commit is contained in:
DanyLE 2022-09-15 11:55:20 +02:00
parent 7a1c58009b
commit 869f13129a

View File

@ -76,11 +76,11 @@ if HEADER["User-Agent"] and HEADER["User-Agent"]:match("Mobi") then
end
function LOG_INFO(fmt,...)
ulib.syslog(5,string.format(fmt or "LOG", table.unpack({...}) or ""))
ulib.syslog(5,string.format(fmt or "LOG",...))
end
function LOG_ERROR(fmt,...)
ulib.syslog(3,string.format(fmt or "ERROR", table.unpack({...}) or ""))
ulib.syslog(3,string.format(fmt or "ERROR",...))
end
function has_module(m)