From ae428485f29bff72e32319429617fab452e151a5 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Fri, 4 Jul 2014 14:30:21 +0200 Subject: [PATCH] MT#7955 Enhance logging for by_alias handling --- apps/app_voicemail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a250c8b..535b959 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2751,7 +2751,7 @@ static struct ast_vm_user *find_user_realtime_by_alias(struct ast_vm_user *ivm, } res = SQLFetch(stmt); if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) { - ast_log(LOG_WARNING, "SQL Fetch error!\n[%s]\n\n", sql); + ast_log(LOG_INFO, "Failed to fetch mailbox for alias '%s'\n", alias); SQLFreeHandle (SQL_HANDLE_STMT, stmt); ast_odbc_release_obj(obj); return NULL; @@ -2766,6 +2766,7 @@ static struct ast_vm_user *find_user_realtime_by_alias(struct ast_vm_user *ivm, SQLFreeHandle(SQL_HANDLE_STMT, stmt); ast_odbc_release_obj(obj); + ast_log(LOG_INFO, "Found mailbox '%s' for alias '%s'\n", mailbox, alias); return find_user_realtime(ivm, context, mailbox); }