summaryrefslogtreecommitdiff
path: root/telepathy-glib/debug-sender.c
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2011-02-03 15:12:01 +0000
committerVivek Dasmohapatra <vivek@collabora.co.uk>2011-02-09 16:05:58 +0000
commitd84c9f7fc1b922c73c3cdcdffbe15acba59b878b (patch)
tree84f6d895675415433b7226d43407a3e850158b84 /telepathy-glib/debug-sender.c
parent3862ea9d9577437a48bf0d798fe7387fe1bd4176 (diff)
downloadtelepathy-glib-d84c9f7fc1b922c73c3cdcdffbe15acba59b878b.tar.gz
ifdef the debug cache code based on ENABLE_DEBUG_CACHE
Diffstat (limited to 'telepathy-glib/debug-sender.c')
-rw-r--r--telepathy-glib/debug-sender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-glib/debug-sender.c b/telepathy-glib/debug-sender.c
index 6acd0152b..d2d421a91 100644
--- a/telepathy-glib/debug-sender.c
+++ b/telepathy-glib/debug-sender.c
@@ -356,6 +356,7 @@ static void
_tp_debug_sender_take (TpDebugSender *self,
DebugMessage *new_msg)
{
+#ifdef ENABLE_DEBUG_CACHE
if (g_queue_get_length (self->priv->messages) >= DEBUG_MESSAGE_LIMIT)
{
DebugMessage *old_head =
@@ -365,6 +366,7 @@ _tp_debug_sender_take (TpDebugSender *self,
}
g_queue_push_tail (self->priv->messages, new_msg);
+#endif
if (self->priv->enabled)
{