Add. debug message to log.
This commit is contained in:
@@ -292,6 +292,16 @@
|
|||||||
|
|
||||||
-- prevent partial dialplan (pass=nil may be error in sql or empty resultset)
|
-- prevent partial dialplan (pass=nil may be error in sql or empty resultset)
|
||||||
if pass == false then
|
if pass == false then
|
||||||
|
log.errf('context: %s, extension: %s, type: %s, data: %s ',
|
||||||
|
call_context,
|
||||||
|
dialplan_name or '----',
|
||||||
|
dialplan_detail_tag or '----',
|
||||||
|
dialplan_detail_data or '----'
|
||||||
|
)
|
||||||
|
|
||||||
|
--close the database connection
|
||||||
|
dbh:release();
|
||||||
|
|
||||||
error('error while build context: ' .. call_context)
|
error('error while build context: ' .. call_context)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ local function tracef(type, name, level, ...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local LEVELS = {
|
local LEVELS = {
|
||||||
'error',
|
'err',
|
||||||
'warning',
|
'warning',
|
||||||
'notice',
|
'notice',
|
||||||
'info',
|
'info',
|
||||||
|
|||||||
Reference in New Issue
Block a user