Browse code

cnxcc: remove useless warn messages

if the cid is not equal, an error message is going to be thrown.
Add more info in the later debug message.

Victor Seva authored on 29/06/2020 16:31:37
Showing 1 changed files
... ...
@@ -1430,10 +1430,6 @@ static int __add_call_by_cid(str *cid, call_t *call, credit_type_t type)
1430 1430
 			return -1;
1431 1431
 		}
1432 1432
 
1433
-		LM_WARN("value cid: len=%d | value [%.*s]", value->sip_data.callid.len,
1434
-				value->sip_data.callid.len, value->sip_data.callid.s);
1435
-		LM_WARN("added cid: len=%d | value [%.*s]", cid->len, cid->len, cid->s);
1436
-
1437 1433
 		if(value->sip_data.callid.len != cid->len
1438 1434
 				|| strncasecmp(value->sip_data.callid.s, cid->s, cid->len)
1439 1435
 						   != 0) {
... ...
@@ -1444,7 +1440,7 @@ static int __add_call_by_cid(str *cid, call_t *call, credit_type_t type)
1444 1444
 			return -1;
1445 1445
 		}
1446 1446
 
1447
-		LM_DBG("CID already present\n");
1447
+		LM_DBG("CID[%.*s] already present\n", cid->len, cid->s);
1448 1448
 		return 0;
1449 1449
 	}
1450 1450