]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8286: Minor debug log level tweaks
authorCorey Burke <corey@switch.co>
Fri, 2 Oct 2015 15:41:41 +0000 (08:41 -0700)
committerCorey Burke <corey@switch.co>
Fri, 2 Oct 2015 15:41:41 +0000 (08:41 -0700)
Adjust some DEBUG and INFO log lines, reducing log verbosity at the INFO level while increasing call debugging info.

src/mod/applications/mod_conference/conference_api.c
src/mod/applications/mod_conference/conference_loop.c
src/mod/applications/mod_conference/conference_member.c
src/mod/applications/mod_conference/conference_record.c
src/mod/applications/mod_conference/mod_conference.c
src/switch_channel.c
src/switch_core_media.c
src/switch_ivr_async.c

index b96563f178711dc0ba933db9b7c8ae5b4fdf99f6..c5c4dd4f1a6e96b8065742edcba074ffcabc76ca 100644 (file)
@@ -2435,7 +2435,7 @@ switch_status_t conference_api_sub_pauserec(conference_obj_t *conference, switch
        }
        stream->write_function(stream, "%s recording file %s\n",
                                                   action == REC_ACTION_PAUSE ? "Pause" : "Resume", argv[2]);
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s recording file %s\n",
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO,  "%s recording file %s\n",
                                          action == REC_ACTION_PAUSE ? "Pause" : "Resume", argv[2]);
 
        if (!conference_record_action(conference, argv[2], action)) {
index 162e50cc366ae52cffb7e00f8b037e7d67df683f..d4bf32c0b0c1872a9f1e2f51d4e1567b691406c7 100644 (file)
@@ -583,7 +583,7 @@ void conference_loop_transfer(conference_member_t *member, caller_control_action
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member->session), SWITCH_LOG_ERROR, "Unable to allocate memory to duplicate transfer data.\n");
                goto done;
        }
-       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member->session), SWITCH_LOG_DEBUG, "Transfering to: %s, %s, %s\n", exten, dialplan, context);
+       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member->session), SWITCH_LOG_INFO, "Transfering to: %s, %s, %s\n", exten, dialplan, context);
 
        switch_ivr_session_transfer(member->session, exten, dialplan, context);
 
@@ -633,7 +633,7 @@ void conference_loop_exec_app(conference_member_t *member, caller_control_action
                goto done;
        }
 
-       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member->session), SWITCH_LOG_DEBUG, "Execute app: %s, %s\n", app, arg);
+       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member->session), SWITCH_LOG_INFO, "Execute app: %s, %s\n", app, arg);
 
        channel = switch_core_session_get_channel(member->session);
 
@@ -1388,7 +1388,7 @@ void conference_loop_output(conference_member_t *member)
                return;
        }
 
-       switch_log_printf(SWITCH_CHANNEL_CHANNEL_LOG(channel), SWITCH_LOG_DEBUG, "Channel leaving conference, cause: %s\n",
+       switch_log_printf(SWITCH_CHANNEL_CHANNEL_LOG(channel), SWITCH_LOG_INFO, "Channel leaving conference, cause: %s\n",
                                          switch_channel_cause2str(switch_channel_get_cause(channel)));
 
        /* if it's an outbound channel, store the release cause in the conference struct, we might need it */
index 8d5af7fa628fcf9c622aa6a008a64cdb4221dbfe..b642713c6102e862c82016cedcff122f29c68a16 100644 (file)
@@ -125,7 +125,7 @@ void conference_member_bind_controls(conference_member_t *member, const char *co
 
                for(i = 0; i < conference_loop_mapping_len(); i++) {
                        if (!strcasecmp(key, control_mappings[i].name)) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "%s binding '%s' to '%s'\n",
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s binding '%s' to '%s'\n",
                                                                  switch_core_session_get_name(member->session), digits, key);
 
                                conference_member_do_binding(member, control_mappings[i].handler, digits, data);
index 5ff2dc18dcaa09127712e1f2cc5be2e83611f1b0..167c0f17a0420faa897d4b1650c11f253c0c7517 100644 (file)
@@ -379,7 +379,7 @@ void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *thread, v
                switch_mutex_unlock(conference->mutex);
                switch_core_file_close(&member->rec->fh);
        }
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recording of %s Stopped\n", rec->path);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Recording of %s Stopped\n", rec->path);
        if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT) == SWITCH_STATUS_SUCCESS) {
                conference_event_add_data(conference, event);
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Action", "stop-recording");
index 7ae047ad36e2c8070fedfbf0a4d929e96a74a3c3..59e411f6a9603c49c402f28ac55cd5ca3da0e148 100644 (file)
@@ -362,7 +362,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
                                }
                        }
                        if (is_talking == 0) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Conference has been idle for over %d seconds, terminating\n", conference->terminate_on_silence);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Conference has been idle for over %d seconds, terminating\n", conference->terminate_on_silence);
                                conference_utils_set_flag(conference, CFLAG_DESTRUCT);
                        }
                }
@@ -376,7 +376,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
                                switch_channel_t *channel = switch_core_session_get_channel(imember->session);
                                char *rfile = switch_channel_expand_variables(channel, conference->auto_record);
 
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Auto recording file: %s\n", rfile);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Auto recording file: %s\n", rfile);
                                conference_record_launch_thread(conference, rfile, -1, SWITCH_TRUE);
 
                                if (rfile != conference->auto_record) {
@@ -2967,7 +2967,7 @@ conference_obj_t *conference_new(char *name, conference_xml_cfg_t cfg, switch_co
                if ((val = switch_channel_get_variable(channel, "sound_prefix")) && !zstr(val)) {
                        /* if no sound_prefix was set, use the channel sound_prefix */
                        conference->sound_prefix = switch_core_strdup(conference->pool, val);
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "using channel sound prefix: %s\n", conference->sound_prefix);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "using channel sound prefix: %s\n", conference->sound_prefix);
                }
        }
 
index f528f84a9da1458022f22d604d6d62312af65992..fc587b8b208bd5f4231816b66d67f6eb58d7e3a4 100644 (file)
@@ -499,7 +499,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *chan
                int x = 0;
 
                if (!sensitive) {
-                       switch_log_printf(SWITCH_CHANNEL_CHANNEL_LOG(channel), SWITCH_LOG_DEBUG, "RECV DTMF %c:%d\n", new_dtmf.digit, new_dtmf.duration);
+                       switch_log_printf(SWITCH_CHANNEL_CHANNEL_LOG(channel), SWITCH_LOG_INFO, "RECV DTMF %c:%d\n", new_dtmf.digit, new_dtmf.duration);
                }
 
                if (new_dtmf.digit != 'w' && new_dtmf.digit != 'W') {
index 1775b8062592489a33734b65f1bd01d952566313..7404a389518115f58bc1c144b9203a323ee9b29b 100644 (file)
@@ -6226,7 +6226,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
                                        interval = 5000;
                                }
 
-                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Activating RTCP PORT %d\n", remote_rtcp_port);
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Activating RTCP PORT %d\n", remote_rtcp_port);
                                switch_rtp_activate_rtcp(a_engine->rtp_session, interval, remote_rtcp_port, a_engine->rtcp_mux > 0);
                                
                        }
index d55b8ac29bab237e57089159dff843e765b1098f..09e225aef415caeef98d3751a0b5c9dcc7147284 100644 (file)
@@ -199,7 +199,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_dmachine_set_terminators(switch_ivr_d
 
 
        dmachine->realm->terminators = switch_core_strdup(dmachine->pool, terminators);
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Digit parser %s: Setting terminators for realm '%s' to '%s'\n", 
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Digit parser %s: Setting terminators for realm '%s' to '%s'\n",
                                          dmachine->name, dmachine->realm->name, terminators);
 
        return SWITCH_STATUS_SUCCESS;