move this to debug and profile->debug so that its not on unless you enable the profile debug also.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13887 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-06-22 02:52:31 +00:00
parent a6db0cf42f
commit 809d30254e

View File

@ -1985,7 +1985,9 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
if (!switch_strlen_zero(var) && !switch_strlen_zero(val) && (xparams_type[j] == 1 || !strncasecmp(var, "sip-",4) || !strcasecmp(var, "register-gateway")) ) {
if (!switch_event_get_header(*v_event, var)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "event_add_header -> '%s' = '%s'\n",var, val);
if (profile->debug) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "event_add_header -> '%s' = '%s'\n",var, val);
}
switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM, var, val);
} else {
continue;