]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5184 --resolve never too much logging
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 15 Mar 2013 14:40:01 +0000 (09:40 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 15 Mar 2013 14:40:01 +0000 (09:40 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c
src/mod/endpoints/mod_skinny/mod_skinny.c

index e3fe91da881e85d131ea09dfd9cc791419b09c26..b18b64ec9ca269d570b1bc58e592b918f6b8a1df 100644 (file)
@@ -1855,6 +1855,8 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain
        switch_event_t *event;
        switch_event_t *message_event;
 
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Processing for %s@%s in %s\n", id, domain_name, myfolder);
+
        message_count(profile, id, domain_name, myfolder, &total_new_messages, &total_saved_messages, &total_new_urgent_messages,
                                  &total_saved_urgent_messages);
 
@@ -1876,6 +1878,10 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain
 
        switch_event_fire(&event);
 
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Messages Waiting %s\n", yn);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Update Reason %s\n", update_reason);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Message Account %s@%s\n", id, domain_name);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Voice Message %d/%d\n", total_new_messages, total_saved_messages);
 
        switch_event_create_subclass(&message_event, SWITCH_EVENT_CUSTOM, VM_EVENT_MAINT);
        switch_event_add_header_string(message_event, SWITCH_STACK_BOTTOM, "VM-Action", "mwi-update");
index cb5597487b70a1771a68a95a263b3d98e45c87cf..5325db6be02d73a56dad25d2802b2fd790d96025 100644 (file)
@@ -2112,6 +2112,7 @@ static void skinny_message_waiting_event_handler(switch_event_t *event)
        switch_assert(dup_account != NULL);
        switch_split_user_domain(dup_account, &user, &host);
 
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "MWI Event received for account %s with messages waiting %s\n", account, yn);
 
        if ((pname = switch_event_get_header(event, "skinny-profile"))) {
                if (!(profile = skinny_find_profile(pname))) {