[sr-dev] git:master:5649a249: keepalive: logging state of dest just if changed

Luis Martin Gil luismartingil at zaleos.net
Thu Jun 11 21:16:08 CEST 2020


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

Author: Luis Martin Gil <luismartingil at zaleos.net>
Committer: Luis Martin Gil <luismartingil at zaleos.net>
Date: 2020-06-09T10:48:16+02:00

keepalive: logging state of dest just if changed

---

Modified: src/modules/keepalive/keepalive_core.c

---

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

---

diff --git a/src/modules/keepalive/keepalive_core.c b/src/modules/keepalive/keepalive_core.c
index 4daa57908d..36cf81aef1 100644
--- a/src/modules/keepalive/keepalive_core.c
+++ b/src/modules/keepalive/keepalive_core.c
@@ -119,7 +119,6 @@ static void ka_options_callback(
 		ka_dest->counter++;
 	}
 
-	LM_DBG("new state is: %d\n", state);
 	if(state != ka_dest->state) {
 		ka_run_route(msg, &uri, state_routes[state]);
 
@@ -127,6 +126,7 @@ static void ka_options_callback(
 			ka_dest->statechanged_clb(&ka_dest->uri, state, ka_dest->user_attr);
 		}
 
+		LM_DBG("new state is: %d\n", state);
 		ka_dest->state = state;
 	}
 	if(ka_dest->response_clb != NULL) {




More information about the sr-dev mailing list