[sr-dev] git:master: cr: decreased logging severity of some messages

Lucian Balaceanu lucian.balaceanu at 1and1.ro
Fri Oct 24 16:50:52 CEST 2014


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

Author: lucian balanceanu <lucian.balanceanu at 1and1.ro>
Committer: lucian balanceanu <lucian.balanceanu at 1and1.ro>
Date:   Fri Oct 24 17:12:34 2014 +0300

cr: decreased logging severity of some messages

- moved some informative messages from ERR to INFO, DBG

---

 modules/carrierroute/cr_config.c           |    4 ++--
 modules/carrierroute/parser_carrierroute.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/carrierroute/cr_config.c b/modules/carrierroute/cr_config.c
index 42da588..0912b9a 100644
--- a/modules/carrierroute/cr_config.c
+++ b/modules/carrierroute/cr_config.c
@@ -402,7 +402,7 @@ int load_config(struct route_data_t * rd) {
 				}
 				backup = target_options[TO_ID_BACKUP].value.int_data;
 
-				LM_ERR("\n Adding route to tree <'%.*s'>: prefix_name:%s\n,"
+				LM_DBG("\n Adding route to tree <'%.*s'>: prefix_name:%s\n,"
 						" max_targets =%d\n, prob=%f\n, rewr_host=%s\n,"
 						" strip=%i\n, rwr_prefix=%s\n, rwr_suff=%s\n,"
 						" status=%i\n, hash_index=%i\n, comment=%s \n",
@@ -452,7 +452,7 @@ int load_config(struct route_data_t * rd) {
 		goto errclose;
 	}
 
-	LM_ERR("File parsed successfully \n");
+	LM_INFO("File parsed successfully \n");
 	fclose(file);
 	return 0;
 errclose:
diff --git a/modules/carrierroute/parser_carrierroute.c b/modules/carrierroute/parser_carrierroute.c
index 0f7de38..499e4f1 100644
--- a/modules/carrierroute/parser_carrierroute.c
+++ b/modules/carrierroute/parser_carrierroute.c
@@ -377,7 +377,7 @@ int parse_struct_header(FILE* file, char* expected_struct_type, str* struct_name
 			ret = SUCCESSFUL_PARSING;
 		break;
 	default:
-		LM_ERR("Wrong number of tokens in line: %s\n", data.s);
+		LM_DBG("Wrong number of tokens in line: %s\n", data.s);
 	}
 
 	if ( SUCCESSFUL_PARSING == ret ){




More information about the sr-dev mailing list