diff --git a/src/ice/ice_candidate_pair.c b/src/ice/ice_candidate_pair.c index a315a1f..392a04d 100644 --- a/src/ice/ice_candidate_pair.c +++ b/src/ice/ice_candidate_pair.c @@ -588,7 +588,8 @@ void nr_ice_candidate_pair_set_state(nr_ice_peer_ctx *pctx, nr_ice_cand_pair *pa void nr_ice_candidate_pair_dump_state(nr_ice_cand_pair *pair, int log_level) { - r_log(LOG_ICE,log_level,"CAND-PAIR(%s): pair %s: state=%s, priority=0x%llx\n",pair->codeword,pair->as_string,nr_ice_cand_pair_states[pair->state],pair->priority); + r_log(LOG_ICE,log_level,"CAND-PAIR(%s): pair %s %s (%s-%s): state=%s, priority=0x%llx\n", + pair->pctx->label, pair->codeword,pair->as_string,pair->local->codeword,pair->remote->codeword,nr_ice_cand_pair_states[pair->state],pair->priority); } diff --git a/src/ice/ice_component.c b/src/ice/ice_component.c index b1304f6..b70ea7b 100644 --- a/src/ice/ice_component.c +++ b/src/ice/ice_component.c @@ -1818,7 +1818,7 @@ void nr_ice_component_dump_state(nr_ice_component *comp, int log_level) cand=TAILQ_FIRST(&comp->candidates); while(cand){ - r_log(LOG_ICE,log_level,"ICE(%s)/ICE-STREAM(%s)/CAND(%s): %s",comp->ctx->label,comp->stream->label,cand->codeword,cand->label); + r_log(LOG_ICE,log_level,"ICE(%s)/ICE-STREAM(%s)/CAND(%s): %s, type: %s, priority:0x%llx",comp->ctx->label,comp->stream->label,cand->codeword,cand->label,nr_ice_candidate_type_names[cand->type],cand->priority); cand=TAILQ_NEXT(cand,entry_comp); } } diff --git a/src/ice/ice_peer_ctx.c b/src/ice/ice_peer_ctx.c index a3570fa..701d9ed 100644 --- a/src/ice/ice_peer_ctx.c +++ b/src/ice/ice_peer_ctx.c @@ -648,6 +648,7 @@ void nr_ice_peer_ctx_dump_state(nr_ice_peer_ctx *pctx, int log_level) stream=STAILQ_FIRST(&pctx->peer_streams); while(stream){ nr_ice_media_stream_dump_state(pctx,stream,log_level); + stream=STAILQ_NEXT(stream,entry); } r_log(LOG_ICE,log_level,"=========================================="); }