Bug 1233181: improve misleading log message about missing STUN & TURN servers. r?=mjf

MozReview-Commit-ID: sQzU9u96yP

--HG--
extra : rebase_source : 9a5d3198ee4d52fab556d2eace08aa41ea75cf5a
This commit is contained in:
Nils Ohlmeier [:drno] 2015-12-16 12:00:27 -08:00
Родитель 6bf171b61a
Коммит eca4273031
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -346,7 +346,7 @@ int nr_ice_ctx_create(char *label, UINT4 flags, nr_ice_ctx **ctxp)
/* Get the STUN servers */
if(r=NR_reg_get_child_count(NR_ICE_REG_STUN_SRV_PRFX,
(unsigned int *)&ctx->stun_server_ct)||ctx->stun_server_ct==0) {
r_log(LOG_ICE,LOG_WARNING,"ICE(%s): No STUN servers specified", ctx->label);
r_log(LOG_ICE,LOG_DEBUG,"ICE(%s): No STUN servers specified in nICEr registry", ctx->label);
ctx->stun_server_ct=0;
}
@ -368,7 +368,7 @@ int nr_ice_ctx_create(char *label, UINT4 flags, nr_ice_ctx **ctxp)
/* Get the TURN servers */
if(r=NR_reg_get_child_count(NR_ICE_REG_TURN_SRV_PRFX,
(unsigned int *)&ctx->turn_server_ct)||ctx->turn_server_ct==0) {
r_log(LOG_ICE,LOG_NOTICE,"ICE(%s): No TURN servers specified", ctx->label);
r_log(LOG_ICE,LOG_DEBUG,"ICE(%s): No TURN servers specified in nICEr registry", ctx->label);
ctx->turn_server_ct=0;
}
#else