Explorar o código

keepalive: logging state of dest just if changed

Luis Martin Gil %!s(int64=5) %!d(string=hai) anos
pai
achega
5649a24929
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modules/keepalive/keepalive_core.c

+ 1 - 1
src/modules/keepalive/keepalive_core.c

@@ -119,7 +119,6 @@ static void ka_options_callback(
 		ka_dest->counter++;
 		ka_dest->counter++;
 	}
 	}
 
 
-	LM_DBG("new state is: %d\n", state);
 	if(state != ka_dest->state) {
 	if(state != ka_dest->state) {
 		ka_run_route(msg, &uri, state_routes[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);
 			ka_dest->statechanged_clb(&ka_dest->uri, state, ka_dest->user_attr);
 		}
 		}
 
 
+		LM_DBG("new state is: %d\n", state);
 		ka_dest->state = state;
 		ka_dest->state = state;
 	}
 	}
 	if(ka_dest->response_clb != NULL) {
 	if(ka_dest->response_clb != NULL) {