mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 1521879 - Part 4: Better logging for candidate gathering (was necessary to figure out parts of bug 1513059). r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17276 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
d7729846c2
commit
c92061f30a
@ -519,7 +519,11 @@ void nr_ice_gather_finished_cb(NR_SOCKET s, int h, void *cb_arg)
|
||||
ctx = cand->ctx;
|
||||
|
||||
ctx->uninitialized_candidates--;
|
||||
r_log(LOG_ICE,LOG_DEBUG,"ICE(%s)/CAND(%s): initialized, %d remaining",ctx->label,cand->codeword,ctx->uninitialized_candidates);
|
||||
if (cand->state == NR_ICE_CAND_STATE_FAILED) {
|
||||
r_log(LOG_ICE,LOG_WARNING,"ICE(%s)/CAND(%s): failed to initialize, %d remaining",ctx->label,cand->label,ctx->uninitialized_candidates);
|
||||
} else {
|
||||
r_log(LOG_ICE,LOG_DEBUG,"ICE(%s)/CAND(%s): initialized, %d remaining",ctx->label,cand->label,ctx->uninitialized_candidates);
|
||||
}
|
||||
|
||||
/* Avoid the need for yet another initialization function */
|
||||
if (cand->state == NR_ICE_CAND_STATE_INITIALIZING && cand->type == HOST)
|
||||
@ -547,12 +551,12 @@ void nr_ice_gather_finished_cb(NR_SOCKET s, int h, void *cb_arg)
|
||||
}
|
||||
|
||||
if(ctx->uninitialized_candidates==0){
|
||||
r_log(LOG_ICE,LOG_DEBUG,"ICE(%s): All candidates initialized",ctx->label);
|
||||
r_log(LOG_ICE,LOG_INFO,"ICE(%s): All candidates initialized",ctx->label);
|
||||
if (ctx->done_cb) {
|
||||
ctx->done_cb(0,0,ctx->cb_arg);
|
||||
}
|
||||
else {
|
||||
r_log(LOG_ICE,LOG_DEBUG,"ICE(%s): No done_cb. We were probably destroyed.",ctx->label);
|
||||
r_log(LOG_ICE,LOG_INFO,"ICE(%s): No done_cb. We were probably destroyed.",ctx->label);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user