aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-06 19:51:58 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:51:58 +0800
commit79697ab1fc4f90646bc3495514d6e30585a2f97f (patch)
tree1dcea2b1e0d93f5db992084c449635bfcc961876 /src
parentd53b22689f12218cfa3b5f72fb936dd01dd08885 (diff)
downloadgsoc2013-empathy-79697ab1fc4f90646bc3495514d6e30585a2f97f.tar
gsoc2013-empathy-79697ab1fc4f90646bc3495514d6e30585a2f97f.tar.gz
gsoc2013-empathy-79697ab1fc4f90646bc3495514d6e30585a2f97f.tar.bz2
gsoc2013-empathy-79697ab1fc4f90646bc3495514d6e30585a2f97f.tar.lz
gsoc2013-empathy-79697ab1fc4f90646bc3495514d6e30585a2f97f.tar.xz
gsoc2013-empathy-79697ab1fc4f90646bc3495514d6e30585a2f97f.tar.zst
gsoc2013-empathy-79697ab1fc4f90646bc3495514d6e30585a2f97f.zip
Only write messages to one specified log source, hardcoded at the moment.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2590
Diffstat (limited to 'src')
-rw-r--r--src/empathy.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/empathy.c b/src/empathy.c
index ce380588f..9357b2cb7 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -136,13 +136,21 @@ received_message_cb (EmpathyTpChat *tp_chat,
{
EmpathyLogManager *log_manager;
EmpathyContact *contact;
+ GError *error = NULL;
contact = empathy_tp_chat_get_remote_contact (tp_chat);
log_manager = empathy_log_manager_dup_singleton ();
- empathy_log_manager_add_message (log_manager,
- empathy_contact_get_id (contact), is_chatroom, message);
+ if (!empathy_log_manager_add_message (log_manager,
+ empathy_contact_get_id (contact),
+ is_chatroom,
+ message,
+ &error)) {
+ DEBUG ("Failed to write message: %s",
+ error ? error->message : "No error message");
+ }
+
g_object_unref (contact);
g_object_unref (log_manager);