diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-09-21 17:17:31 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-09-25 10:35:01 +0100 |
commit | 2223be661d6a5e1d015f5ba9d08b94a2a2d9e911 (patch) | |
tree | 35a9491457674c5817bd1edfefcdc68634933c37 /wocky/wocky-pep-service.c | |
parent | a75a44766c6451b3789b7ec3461efa1d1d32d3b9 (diff) |
wocky-pep-service: add a debug msg
Diffstat (limited to 'wocky/wocky-pep-service.c')
-rw-r--r-- | wocky/wocky-pep-service.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wocky/wocky-pep-service.c b/wocky/wocky-pep-service.c index 6f5e9fc..9c6eef2 100644 --- a/wocky/wocky-pep-service.c +++ b/wocky/wocky-pep-service.c @@ -24,6 +24,9 @@ #include <wocky/wocky-namespaces.h> #include <wocky/wocky-signals-marshal.h> +#define DEBUG_FLAG DEBUG_PUBSUB +#include "wocky-debug.h" + G_DEFINE_TYPE (WockyPepService, wocky_pep_service, G_TYPE_OBJECT) /* signal enum */ @@ -220,7 +223,10 @@ msg_event_cb (WockyPorter *porter, from = wocky_xmpp_node_get_attribute (stanza->node, "from"); if (from == NULL) - return FALSE; + { + DEBUG ("No 'from' attribute; ignoring event"); + return FALSE; + } contact = wocky_contact_factory_ensure_bare_contact ( priv->contact_factory, from); |