Disabled debug print

This commit is contained in:
Matteo Biscosi 2023-12-01 10:45:26 +00:00
parent 6a65650a9d
commit 5a08d6336b

View file

@ -728,9 +728,9 @@ local function delta_val(reg, metric_name, granularity, curr_val, skip_first)
local prev_val
local prev = reg.getCachedAlertValue(key, granularity_num)
if prev == nil or type(prev) == "table" then -- Safety check and debug
traceError(TRACE_ERROR, TRACE_CONSOLE, "Bad prev val")
tprint(prev)
tprint(debug.traceback())
--traceError(TRACE_ERROR, TRACE_CONSOLE, "Bad prev val")
--tprint(prev)
--tprint(debug.traceback())
else
prev_val = tonumber(prev)
end