[sr-dev] git:master:6429a2d1: sipcapture: Terminate the log line with a \n

Holger Hans Peter Freyther holger at moiji-mobile.com
Fri Oct 28 16:44:39 CEST 2016


Module: kamailio
Branch: master
Commit: 6429a2d11e3639f049c7b32149cde5a89f5e9973
URL: https://github.com/kamailio/kamailio/commit/6429a2d11e3639f049c7b32149cde5a89f5e9973

Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Committer: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date: 2016-10-28T16:40:36+02:00

sipcapture: Terminate the log line with a \n

Add a newline to avoid the log of other messages starting behind
the REQUEST, PRE output.

---

Modified: modules/sipcapture/sipcapture.c

---

Diff:  https://github.com/kamailio/kamailio/commit/6429a2d11e3639f049c7b32149cde5a89f5e9973.diff
Patch: https://github.com/kamailio/kamailio/commit/6429a2d11e3639f049c7b32149cde5a89f5e9973.patch

---

diff --git a/modules/sipcapture/sipcapture.c b/modules/sipcapture/sipcapture.c
index 9b9af91..955e036 100644
--- a/modules/sipcapture/sipcapture.c
+++ b/modules/sipcapture/sipcapture.c
@@ -2825,7 +2825,7 @@ static int pv_parse_hep_name (pv_spec_p sp, str *in)
 	if(sp==NULL || in==NULL || in->len<=0)
 		return -1;
 
-        LM_ERR("REQUEST, PRE, %.*s", in->len, in->s);
+        LM_ERR("REQUEST, PRE, %.*s\n", in->len, in->s);
 
 	switch(in->len)
 	{




More information about the sr-dev mailing list