Update intercept.lua
This commit is contained in:
@@ -49,9 +49,9 @@
|
|||||||
|
|
||||||
--include json library
|
--include json library
|
||||||
local json
|
local json
|
||||||
-- if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
json = require "resources.functions.lunajson"
|
json = require "resources.functions.lunajson"
|
||||||
-- end
|
end
|
||||||
|
|
||||||
--get the hostname
|
--get the hostname
|
||||||
local hostname = trim(api:execute("switchname", ""));
|
local hostname = trim(api:execute("switchname", ""));
|
||||||
@@ -288,9 +288,9 @@
|
|||||||
sql = sql .. ") ";
|
sql = sql .. ") ";
|
||||||
sql = sql .. "AND call_uuid IS NOT NULL ";
|
sql = sql .. "AND call_uuid IS NOT NULL ";
|
||||||
sql = sql .. "LIMIT 1 ";
|
sql = sql .. "LIMIT 1 ";
|
||||||
--if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
log.noticef("SQL: %s; params: %s", sql, json.encode(params));
|
log.noticef("SQL: %s; params: %s", sql, json.encode(params));
|
||||||
--end
|
end
|
||||||
local is_child
|
local is_child
|
||||||
dbh:query(sql, params, function(row)
|
dbh:query(sql, params, function(row)
|
||||||
--for key, val in pairs(row) do
|
--for key, val in pairs(row) do
|
||||||
|
|||||||
Reference in New Issue
Block a user