Browse Source

core: some adjustments to two debug messages

Daniel-Constantin Mierla 14 years ago
parent
commit
7530358271
2 changed files with 3 additions and 2 deletions
  1. 2 1
      parser/parse_from.c
  2. 1 1
      parser/sdp/sdp_helpr_funcs.c

+ 2 - 1
parser/parse_from.c

@@ -76,7 +76,8 @@ int parse_from_header( struct sip_msg *msg)
 	memset(from_b, 0, sizeof(struct to_body));
 	parse_to(msg->from->body.s,msg->from->body.s+msg->from->body.len+1,from_b);
 	if (from_b->error == PARSE_ERROR) {
-		LOG(L_ERR, "ERROR:parse_from_header: bad from header\n");
+		LOG(L_ERR, "ERROR:parse_from_header: bad from header [%.*s]\n",
+				msg->from->body.len, msg->from->body.s);
 		free_to(from_b);
 		goto error;
 	}

+ 1 - 1
parser/sdp/sdp_helpr_funcs.c

@@ -468,7 +468,7 @@ int extract_mediaip(str *body, str *mediaip, int *pf, char *line)
 		return -1;
 	}
 
-	LM_ERR("located IP address [%.*s] in `%s' field\n",
+	LM_DBG("located IP address [%.*s] in `%s' field\n",
 			mediaip->len, mediaip->s, line);
 	return 1;
 }