Module: kamailio
Branch: master
Commit: ca230986b7f4ea84746c47df177ac21b19fd70a3
URL: 
https://github.com/kamailio/kamailio/commit/ca230986b7f4ea84746c47df177ac21b19fd70a3

Author: lazedo <luis.az...@factorlusitano.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2018-02-19T10:07:36+01:00

dispatch: change log level to debug for rpc list empty list


when dynamically loading/querying the dispatcher list at runtime, empty dslist 
logs as error which misleads log monitoring tools looking for real errors

---

Modified: src/modules/dispatcher/dispatcher.c

---

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

---

diff --git a/src/modules/dispatcher/dispatcher.c 
b/src/modules/dispatcher/dispatcher.c
index efb3a18001..fd3d129df9 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -1291,7 +1291,7 @@ static void dispatcher_rpc_list(rpc_t *rpc, void *ctx)
        int ds_list_nr = ds_get_list_nr();
 
        if(ds_list == NULL || ds_list_nr <= 0) {
-               LM_ERR("no destination sets\n");
+               LM_DBG("no destination sets\n");
                rpc->fault(ctx, 500, "No Destination Sets");
                return;
        }


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to