TT#78651 scripts: fix missing KSR short log functions

* introduced at 72b9ed4f81

Change-Id: I1fd8a17372f818fe4ce579fdcf2d7c2a655023e0
mr9.1
Victor Seva 5 years ago
parent fca1e982e1
commit 753124e1c1

@ -18,6 +18,24 @@ KSR = {}
KSR.log = function (level, str) KSR.log = function (level, str)
print(string.format("[%s] %s", level, str)) print(string.format("[%s] %s", level, str))
end end
function KSR.dbg(message)
KSR.log("debug", message)
end
function KSR.err(message)
KSR.log("error", message)
end
function KSR.info(message)
KSR.log("info", message)
end
function KSR.notice(message)
KSR.log("info", message)
end
function KSR.warn(message)
KSR.log("warn", message)
end
function KSR.crit(message)
KSR.log("fatal", message)
end
local function get_config() local function get_config()
if os.getenv('DLG_CONFIG') then if os.getenv('DLG_CONFIG') then

@ -16,6 +16,24 @@ KSR = {}
KSR.log = function (level, str) KSR.log = function (level, str)
print(string.format("[%s] %s", level, str)) print(string.format("[%s] %s", level, str))
end end
function KSR.dbg(message)
KSR.log("debug", message)
end
function KSR.err(message)
KSR.log("error", message)
end
function KSR.info(message)
KSR.log("info", message)
end
function KSR.notice(message)
KSR.log("info", message)
end
function KSR.warn(message)
KSR.log("warn", message)
end
function KSR.crit(message)
KSR.log("fatal", message)
end
local function get_config() local function get_config()
if os.getenv('DLG_CONFIG') then if os.getenv('DLG_CONFIG') then

Loading…
Cancel
Save