introduce "debug" config. Value is true/false (boolean)

This commit is contained in:
Arief Bayu Purwanto 2015-02-18 11:59:35 +07:00
parent 130cb63bc5
commit ea67edfa99

View File

@ -84,6 +84,14 @@ function vardump(value, depth, key)
local linePrefix = ""
local spaces = ""
-- print("++++++++++ --> " .. _config.debug)
if _config.debug ~= nil then
if _config.debug == false then
return ""
end
end
if key ~= nil then
linePrefix = "["..key.."] = "
end