]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move this to debug and profile->debug so that its not on unless you enable the profi...
authorBrian West <brian@freeswitch.org>
Mon, 22 Jun 2009 02:52:31 +0000 (02:52 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 22 Jun 2009 02:52:31 +0000 (02:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13887 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index b87869e3dae8835dfce13fcdab9314a56c8df423..537d44550a97980aa87a5e67e18c9d1b5d86fe8d 100644 (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;