Skip to content

Commit

Permalink
Bug 841566 - Turn on testserver logging for WebRTC-related systems r=…
Browse files Browse the repository at this point in the history
…jesup,ted.mielczarek
  • Loading branch information
adamroach committed Feb 22, 2013
1 parent 6d39240 commit e95ef1b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions build/automation.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,14 @@ user_pref("camino.use_system_proxy_settings", false); // Camino-only, harmless t
env['XRE_NO_WINDOWS_CRASH_DIALOG'] = '1'
env['NS_TRACE_MALLOC_DISABLE_STACKS'] = '1'

# Additional temporary logging while we try to debug some intermittent
# WebRTC conditions. This is necessary to troubleshoot bugs 841496,
# 841150, and 839677 (at least)
env['NSPR_LOG_MODULES'] = 'signaling:3,mtransport:3'
env['R_LOG_LEVEL'] = '5'
env['R_LOG_DESTINATION'] = 'stderr'
env['R_LOG_VERBOSE'] = '1'

# ASan specific environment stuff
if self.IS_ASAN and (self.IS_LINUX or self.IS_MAC):
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ static int nr_stun_server_get_password(void *arg, nr_stun_message *msg, Data **p
ABORT(R_NOT_FOUND);
}

r_log(NR_LOG_STUN,LOG_NOTICE,"STUN-SERVER(%s): Unable to find password for unknown user: %s",ctx->label,username_attribute->u.username);
/* Although this is an exceptional condition, we'll already have seen a
* NOTICE-level log message about the unknown user, so additional log
* messages at any level higher than DEBUG are unnecessary. */

r_log(NR_LOG_STUN,LOG_DEBUG,"STUN-SERVER(%s): Unable to find password for unknown user: %s",ctx->label,username_attribute->u.username);
ABORT(R_NOT_FOUND);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cc_string_t lineLabels[MAX_CONFIG_LINES+1] = {0};

void ccsnap_set_line_label(int btn, cc_string_t label) {

CCAPP_ERROR(DEB_F_PREFIX"btn=%d label=%s\n", DEB_F_PREFIX_ARGS(SIP_CC_PROV, "ccsnap_set_line_label"), btn, label);
CCAPP_DEBUG(DEB_F_PREFIX"btn=%d label=%s\n", DEB_F_PREFIX_ARGS(SIP_CC_PROV, "ccsnap_set_line_label"), btn, label);
if ( btn > 0 && btn <= MAX_CONFIG_LINES+1 ) {
if ( label == NULL ) {
label = strlib_empty();
Expand Down
2 changes: 1 addition & 1 deletion media/webrtc/signaling/src/sipcc/core/common/config_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ config_set_string (int id, char *buffer)
}
}

#define MAX_CONFIG_VAL_PRINT_LEN 256
#define MAX_CONFIG_VAL_PRINT_LEN 258
/*
* Function: print_config_value()
*
Expand Down

0 comments on commit e95ef1b

Please sign in to comment.