Module: sip-router
Branch: master
Commit: 2685cd9bb6933c2d4b4b97e3b4ed6b98005255c9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2685cd9…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Thu Aug 29 17:05:41 2013 +0300
parser/fline.c: syslog message cleanup when request line parsing fails
---
parser/parse_fline.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/parser/parse_fline.c b/parser/parse_fline.c
index 25ab944..54da8c5 100644
--- a/parser/parse_fline.c
+++ b/parser/parse_fline.c
@@ -225,21 +225,21 @@ char* parse_first_line(char* buffer, unsigned int len, struct
msg_start * fl)
return nl;
error:
- LOG(L_INFO, "ERROR:parse_first_line: bad %s first line\n",
+ LOG(L_DBG, "parse_first_line: bad %s first line\n",
(fl->type==SIP_REPLY)?"reply(status)":"request");
- LOG(L_INFO, "ERROR: at line 0 char %d: \n", offset );
+ LOG(L_DBG, "at line 0 char %d: \n", offset );
prn=pkg_malloc( offset );
if (prn) {
for (t=0; t<offset; t++)
if (*(buffer+t)) *(prn+t)=*(buffer+t);
else *(prn+t)='�';
- LOG(L_INFO, "ERROR: parsed so far: %.*s\n", offset, ZSW(prn) );
+ LOG(L_DBG, "parsed so far: %.*s\n", offset, ZSW(prn) );
pkg_free( prn );
};
error1:
fl->type=SIP_INVALID;
- LOG(L_INFO, "ERROR:parse_first_line: bad message\n");
+ LOG(L_ERR, "parse_first_line: bad message\n");
/* skip line */
nl=eat_line(buffer,len);
return nl;