[sr-dev] git:5.2:f96b99f0: pipelimit: make error log debug in rpc command when pipe not found

Henning Westerholt hw at skalatan.de
Wed Jan 22 23:12:29 CET 2020


Module: kamailio
Branch: 5.2
Commit: f96b99f09af56921e42322b0e63194b4d1b45939
URL: https://github.com/kamailio/kamailio/commit/f96b99f09af56921e42322b0e63194b4d1b45939

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-01-22T23:03:46+01:00

pipelimit: make error log debug in rpc command when pipe not found

- error code is returned to rpc command

(cherry picked from commit 5a607cabc34d16fe3770f273241b667fea470dc9)

---

Modified: src/modules/pipelimit/pl_ht.c

---

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

---

diff --git a/src/modules/pipelimit/pl_ht.c b/src/modules/pipelimit/pl_ht.c
index a9283e8e55..1f666b89f3 100644
--- a/src/modules/pipelimit/pl_ht.c
+++ b/src/modules/pipelimit/pl_ht.c
@@ -516,7 +516,7 @@ void rpc_pl_list(rpc_t *rpc, void *c)
 	if(pipeid.len>0) {
 		it = pl_pipe_get(&pipeid, 1);
 		if (it==NULL) {
-			LM_ERR("no pipe: %.*s\n", pipeid.len, pipeid.s);
+			LM_DBG("no pipe: %.*s\n", pipeid.len, pipeid.s);
 			rpc->fault(c, 400, "Unknown pipe id %.*s", pipeid.len, pipeid.s);
 			return;
 		}




More information about the sr-dev mailing list