[sr-dev] git:4.2:e2db6086: sipcapture Add some missing \n in log messages
Daniel-Constantin Mierla
miconda at gmail.com
Wed Feb 4 18:10:54 CET 2015
Module: kamailio
Branch: 4.2
Commit: e2db60867748eac2e6585ef9d865b12c1e8ddfe2
URL: https://github.com/kamailio/kamailio/commit/e2db60867748eac2e6585ef9d865b12c1e8ddfe2
Author: Olle E. Johansson <oej at edvina.net>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-02-04T18:04:19+01:00
sipcapture Add some missing \n in log messages
(cherry picked from commit 5bafc03222bf6fcc59dbcf8aec30def9cdb24581)
---
Modified: modules/sipcapture/sipcapture.c
---
Diff: https://github.com/kamailio/kamailio/commit/e2db60867748eac2e6585ef9d865b12c1e8ddfe2.diff
Patch: https://github.com/kamailio/kamailio/commit/e2db60867748eac2e6585ef9d865b12c1e8ddfe2.patch
---
diff --git a/modules/sipcapture/sipcapture.c b/modules/sipcapture/sipcapture.c
index 42df2c3..070482c 100644
--- a/modules/sipcapture/sipcapture.c
+++ b/modules/sipcapture/sipcapture.c
@@ -794,16 +794,16 @@ static int mod_init(void) {
}
if ((insert_retries <0) || ( insert_retries > 500)) {
- LM_ERR("insert_retries should be a value between 0 and 500");
+ LM_ERR("insert_retries should be a value between 0 and 500\n");
return -1;
}
if (( 0 == insert_retries) && (insert_retry_timeout != 0)){
- LM_ERR("insert_retry_timeout has no meaning when insert_retries is not set");
+ LM_ERR("insert_retry_timeout has no meaning when insert_retries is not set\n");
}
if ((insert_retry_timeout <0) || ( insert_retry_timeout > 300)) {
- LM_ERR("insert_retry_timeout should be a value between 0 and 300");
+ LM_ERR("insert_retry_timeout should be a value between 0 and 300\n");
return -1;
}
@@ -964,7 +964,7 @@ static int child_init(int rank)
while (c){
if (!c->db_url.s || !c->db_url.len ){
- LM_ERR("DB URL not set for capture mode:[%.*s]", c->name.len, c->name.s);
+ LM_ERR("DB URL not set for capture mode:[%.*s]\n", c->name.len, c->name.s);
return -1;
}
c->db_con = c->db_funcs.init(&c->db_url);
More information about the sr-dev
mailing list