summaryrefslogtreecommitdiff
path: root/cdr
diff options
context:
space:
mode:
authorWalter Doekes <walter+asterisk@wjd.nu>2012-10-17 14:24:52 +0000
committerWalter Doekes <walter+asterisk@wjd.nu>2012-10-17 14:24:52 +0000
commit6d57ecd48c2efa36973ebcf204ffed0ed8a39580 (patch)
treefbfe10fa310a17ab585f1d274220d3255ea57727 /cdr
parent1a0646aec17422b5d5071714fa8f1992a097c367 (diff)
Change a few warnings to debug and the inverse.
Remove the "RTP Read too short" warning for RTP keepalives. Remove the the warning about the application delimiter switch from pipe to comma. (You should've done this by now.) Make cdr_odbc report more when an insert fails. Make chan_sip warn less when the peer wants SRTP (and we don't) or sends a zero port to disable a media type. Review: https://reviewboard.asterisk.org/r/2167 (closes issue ASTERISK-20538) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_odbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c
index 0b601d292..7ea2f041f 100644
--- a/cdr/cdr_odbc.c
+++ b/cdr/cdr_odbc.c
@@ -94,7 +94,7 @@ static SQLHSTMT execute_cb(struct odbc_obj *obj, void *data)
ODBC_res = SQLAllocHandle(SQL_HANDLE_STMT, obj->con, &stmt);
if ((ODBC_res != SQL_SUCCESS) && (ODBC_res != SQL_SUCCESS_WITH_INFO)) {
- ast_verb(11, "cdr_odbc: Failure in AllocStatement %d\n", ODBC_res);
+ ast_log(LOG_WARNING, "cdr_odbc: Failure in AllocStatement %d\n", ODBC_res);
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
return NULL;
}
@@ -139,7 +139,7 @@ static SQLHSTMT execute_cb(struct odbc_obj *obj, void *data)
ODBC_res = SQLExecDirect(stmt, (unsigned char *)sqlcmd, SQL_NTS);
if ((ODBC_res != SQL_SUCCESS) && (ODBC_res != SQL_SUCCESS_WITH_INFO)) {
- ast_verb(11, "cdr_odbc: Error in ExecDirect: %d\n", ODBC_res);
+ ast_log(LOG_WARNING, "cdr_odbc: Error in ExecDirect: %d, query is: %s\n", ODBC_res, sqlcmd);
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
return NULL;
}