From 4ae80802cedfc8c1e8b01b80470db843e14f4bf7 Mon Sep 17 00:00:00 2001
From: Marco Pesenti Gritti <marco@localhost.localdomain>
Date: Mon, 11 Sep 2006 16:00:24 +0200
Subject: [PATCH] Add some more error log messages

---
 shell/PresenceService/Buddy.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/shell/PresenceService/Buddy.py b/shell/PresenceService/Buddy.py
index 576ee9f4..6a8a2457 100644
--- a/shell/PresenceService/Buddy.py
+++ b/shell/PresenceService/Buddy.py
@@ -163,6 +163,7 @@ class Buddy(object):
 		"""Adds a new service to this buddy's service list, returning
 		True if the service was successfully added, and False if it was not."""
 		if service.get_name() != self._nick_name:
+			logging.error("Service and buddy nick names doesn't match: %s %s" % (service.get_name(), self._nick_name))
 			return False
 		source_addr = service.get_source_address()
 		if source_addr != self._address:
@@ -170,6 +171,7 @@ class Buddy(object):
 			return False
 		service_key = self._get_service_key(service)
 		if service_key in self._services.keys():
+			logging.error("Service already known: %s %s" % (service_key[0], service_key[1]))
 			return False
 		logging.debug("Buddy %s added service type %s id %s" % (self._nick_name, service.get_type(), service.get_activity_id()))
 		self._services[service_key] = service