Browse code

keepalive: logging state of dest just if changed

Luis Martin Gil authored on 09/06/2020 08:48:16
Showing 1 changed files
... ...
@@ -119,7 +119,6 @@ static void ka_options_callback(
119 119
 		ka_dest->counter++;
120 120
 	}
121 121
 
122
-	LM_DBG("new state is: %d\n", state);
123 122
 	if(state != ka_dest->state) {
124 123
 		ka_run_route(msg, &uri, state_routes[state]);
125 124
 
... ...
@@ -127,6 +126,7 @@ static void ka_options_callback(
127 126
 			ka_dest->statechanged_clb(&ka_dest->uri, state, ka_dest->user_attr);
128 127
 		}
129 128
 
129
+		LM_DBG("new state is: %d\n", state);
130 130
 		ka_dest->state = state;
131 131
 	}
132 132
 	if(ka_dest->response_clb != NULL) {