[empathy] tp_chat_received_cb: display the path of the channel in debug log



commit 8c651efbfd8e5ceea5e8796aec12d61840e9590d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Mar 4 10:51:36 2011 +0100

    tp_chat_received_cb: display the path of the channel in debug log
    
    That can be convenient when debugging to easily match Empathy and CM logs.

 libempathy/empathy-tp-chat.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 20692a1..a907799 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -337,7 +337,8 @@ tp_chat_received_cb (TpChannel   *channel,
 		return;
 	}
 
- 	DEBUG ("Message received: %s", message_body);
+	DEBUG ("Message received from channel %s: %s",
+		tp_proxy_get_object_path (channel), message_body);
 
 	if (message_flags & TP_CHANNEL_TEXT_MESSAGE_FLAG_NON_TEXT_CONTENT &&
 	    !tp_strdiff (message_body, "")) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]