]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add chan name to log lines
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 7 Dec 2009 21:27:23 +0000 (21:27 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 7 Dec 2009 21:27:23 +0000 (21:27 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15835 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_state_machine.c

index b9a75316ffd0e8558ab0b467e4deb64ac86fb94a..d82cd8316ac57d08b8d9fcd759c42c753d46860c 100644 (file)
@@ -456,12 +456,14 @@ SWITCH_DECLARE(void) switch_core_session_hangup_state(switch_core_session_t *ses
 
 
        if (switch_thread_self() != session->thread_id) {
-               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "thread mismatch skipping state handler.\n");
+               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s thread mismatch skipping state handler.\n", 
+                                                 switch_channel_get_name(session_channel));
                return;
        }
 
        if (switch_test_flag(session, SSF_HANGUP)) {
-               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "handler already called, skipping state handler.\n");
+               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s handler already called, skipping state handler.\n",
+                                                 switch_channel_get_name(session_channel));
                return;
        }