Skip to content

Commit

Permalink
keepalive: logging state of dest just if changed
Browse files Browse the repository at this point in the history
(cherry picked from commit 5649a24)
  • Loading branch information
luismartingil authored and henningw committed Oct 2, 2020
1 parent 68a101a commit e089a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/keepalive/keepalive_core.c
Expand Up @@ -117,14 +117,14 @@ static void ka_options_callback(
ka_dest->last_up = time(NULL);
}

LM_DBG("new state is: %d\n", state);
if(state != ka_dest->state) {
ka_run_route(msg, &uri, state_routes[state]);

if(ka_dest->statechanged_clb != NULL) {
ka_dest->statechanged_clb(&ka_dest->uri, state, ka_dest->user_attr);
}

LM_DBG("new state is: %d\n", state);
ka_dest->state = state;
}
}
Expand Down

0 comments on commit e089a78

Please sign in to comment.