瀏覽代碼

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

- error code is returned to rpc command

(cherry picked from commit 5a607cabc34d16fe3770f273241b667fea470dc9)
Daniel-Constantin Mierla 5 年之前
父節點
當前提交
f96b99f09a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/pipelimit/pl_ht.c

+ 1 - 1
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;
 		}