Browse code

parser/fline.c: syslog message cleanup when request line parsing fails

Juha Heinanen authored on 29/08/2013 14:05:41
Showing 1 changed files
... ...
@@ -225,21 +225,21 @@ char* parse_first_line(char* buffer, unsigned int len, struct msg_start * fl)
225 225
 	return nl;
226 226
 
227 227
 error:
228
-	LOG(L_INFO, "ERROR:parse_first_line: bad %s first line\n",
228
+	LOG(L_DBG, "parse_first_line: bad %s first line\n",
229 229
 		(fl->type==SIP_REPLY)?"reply(status)":"request");
230 230
 
231
-	LOG(L_INFO, "ERROR: at line 0 char %d: \n", offset );
231
+	LOG(L_DBG, "at line 0 char %d: \n", offset );
232 232
 	prn=pkg_malloc( offset );
233 233
 	if (prn) {
234 234
 		for (t=0; t<offset; t++)
235 235
 			if (*(buffer+t)) *(prn+t)=*(buffer+t);
236 236
 			else *(prn+t)='�';
237
-		LOG(L_INFO, "ERROR: parsed so far: %.*s\n", offset, ZSW(prn) );
237
+		LOG(L_DBG, "parsed so far: %.*s\n", offset, ZSW(prn) );
238 238
 		pkg_free( prn );
239 239
 	};
240 240
 error1:
241 241
 	fl->type=SIP_INVALID;
242
-	LOG(L_INFO, "ERROR:parse_first_line: bad message\n");
242
+	LOG(L_ERR, "parse_first_line: bad message\n");
243 243
 	/* skip  line */
244 244
 	nl=eat_line(buffer,len);
245 245
 	return nl;