From 332e5d59b5933a2945085cbf965a221d7735d948 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 4 May 2012 18:43:19 +0000 Subject: [PATCH] adding some redis debug messages --- daemon/redis.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/redis.c b/daemon/redis.c index 7d99778..c47fe8c 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -214,6 +214,8 @@ int redis_restore(struct callmaster *m) { GQueue q = G_QUEUE_INIT; int i, j, k, l; + mylog(LOG_DEBUG, "Restoring calls from Redis...\n"); + rp = redisCommand(r->ctx, "SMEMBERS calls"); if (!rp || rp->type != REDIS_REPLY_ARRAY) { mylog(LOG_ERR, "Could not retrieve call list from Redis: %s\n", r->ctx->errstr); @@ -227,6 +229,8 @@ int redis_restore(struct callmaster *m) { if (rp2->type != REDIS_REPLY_STRING) continue; + mylog(LOG_DEBUG, "Processing call GUID %s from Redis\n", rp2->str); + rp3 = redisCommand(r->ctx, "HMGET %s callid created", rp2->str); if (!rp3)