Add. debug message to log.

This commit is contained in:
Alexey Melnichuk
2016-02-02 19:32:27 +03:00
parent b6ed2eebe9
commit 69be506311
2 changed files with 11 additions and 1 deletions

View File

@@ -292,6 +292,16 @@
-- prevent partial dialplan (pass=nil may be error in sql or empty resultset)
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)
end

View File

@@ -42,7 +42,7 @@ local function tracef(type, name, level, ...)
end
local LEVELS = {
'error',
'err',
'warning',
'notice',
'info',