]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak log
authorMichael Jerris <mike@jerris.com>
Mon, 26 Apr 2010 09:12:26 +0000 (05:12 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 26 Apr 2010 09:12:26 +0000 (05:12 -0400)
src/switch_core_state_machine.c

index 46116da500578f1491d99e2eda0c7ca56569fd47..ec9c190e708a2b9ab08527b494caa65dc36157d5 100644 (file)
@@ -526,8 +526,9 @@ SWITCH_DECLARE(void) switch_core_session_hangup_state(switch_core_session_t *ses
 
                switch_api_execute(cmd, expanded, use_session, &stream);
 
-               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Hangup Command %s(%s):\n%s\n", cmd, switch_str_nil(expanded),
-                                                 switch_str_nil((char *) stream.data));
+               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Hangup Command %s %s(%s):\n%s\n",
+                                                 use_session ? "with Session" : "with no Session", cmd, switch_str_nil(expanded),
+                                                 switch_str_nil((char *) stream.data) );
 
                if (expanded != arg) {
                        switch_safe_free(expanded);