From 875fc342b05f211512d98dbcba4e0389f9ed1168 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 14 Jul 2021 12:49:02 -0400 Subject: [PATCH] TT#14008 fix redis error messages Change-Id: I7a57924eef1d584d65970f458415a3a76730ffd3 --- daemon/redis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/redis.c b/daemon/redis.c index 5d112ff59..a38159d07 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -376,7 +376,7 @@ void on_redis_notification(redisAsyncContext *actx, void *reply, void *privdata) if (IS_FOREIGN_CALL(c)) call_destroy(c); else { - rlog(LOG_WARN, "Redis-Notifier: Ignoring SET received for OWN call: %s\n", rr->element[2]->str); + rlog(LOG_WARN, "Redis-Notifier: Ignoring SET received for OWN call: " STR_FORMAT "\n", STR_FMT(&callid)); goto err; } } @@ -391,12 +391,12 @@ void on_redis_notification(redisAsyncContext *actx, void *reply, void *privdata) if (strncmp(rr->element[3]->str,"del",3)==0) { c = call_get(&callid); if (!c) { - rlog(LOG_NOTICE, "Redis-Notifier: DEL did not find call with callid: %s\n", rr->element[2]->str); + rlog(LOG_NOTICE, "Redis-Notifier: DEL did not find call with callid: " STR_FORMAT "\n", STR_FMT(&callid)); goto err; } rwlock_unlock_w(&c->master_lock); if (!IS_FOREIGN_CALL(c)) { - rlog(LOG_WARN, "Redis-Notifier: Ignoring DEL received for an OWN call: %s\n", rr->element[2]->str); + rlog(LOG_WARN, "Redis-Notifier: Ignoring DEL received for an OWN call: " STR_FORMAT "\n", STR_FMT(&callid)); goto err; } call_destroy(c);