Module: sip-router
Branch: master
Commit: 75303582714b3f110f3535ba6856d9a71d8ee608
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=75303582714b3f110f3535ba6856d9a71d8ee608

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Mon Oct  3 23:51:16 2011 +0200

core: some adjustments to two debug messages

---

 parser/parse_from.c          |    3 ++-
 parser/sdp/sdp_helpr_funcs.c |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/parser/parse_from.c b/parser/parse_from.c
index 79c831f..b4dfaee 100644
--- a/parser/parse_from.c
+++ b/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;
        }
diff --git a/parser/sdp/sdp_helpr_funcs.c b/parser/sdp/sdp_helpr_funcs.c
index 466dc8c..09a9287 100644
--- a/parser/sdp/sdp_helpr_funcs.c
+++ b/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;
 }


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to