MT#61437 utils: don't require logging globally

ngcp.utils is used in ngcp-prosody-modules and that is used in Lua5.4
lua-logging doesn't work with lua5.4

Change-Id: Id5e2f2afb7ab780d38b4b2ccdd388b0b5c2c4a27
mr13.1
Victor Seva 11 months ago
parent 12c9c983bc
commit 7ca0637e61

@ -17,8 +17,6 @@
-- On Debian systems, the complete text of the GNU General
-- Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
--
local logging = require ('logging')
local log_file = require ('logging.file')
-- Lua utils
local utils = {}
utils.table = {}
@ -469,6 +467,8 @@ end
utils.Stack = Stack
function utils.KSR_log(KSR, logfile)
local logging = require ('logging')
local log_file = require ('logging.file')
-- KSR has already the metatable
if KSR._logger then
KSR._logger = log_file(logfile, "%Y-%m-%d")

Loading…
Cancel
Save