Browse Source

TT#14008 report Redis errors on restore failures

Change-Id: Id1090fe88d02896595ce4a45ac87953714e0d9d1
mr9.5.2
Richard Fuchs 4 years ago
parent
commit
c277070c18
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      daemon/redis.c

+ 11
- 4
daemon/redis.c View File

@ -1889,11 +1889,17 @@ err1:
g_object_unref (parser); g_object_unref (parser);
if (rr_jsonStr) if (rr_jsonStr)
freeReplyObject(rr_jsonStr); freeReplyObject(rr_jsonStr);
log_info_clear();
if (err) { if (err) {
rlog(LOG_WARNING, "Failed to restore call ID '" STR_FORMAT_M "' from Redis: %s",
STR_FMT_M(callid),
err);
mutex_lock(&r->lock);
if (r->ctx && r->ctx->err)
rlog(LOG_WARNING, "Failed to restore call ID '" STR_FORMAT_M "' from Redis: %s (%s)",
STR_FMT_M(callid),
err, r->ctx->errstr);
else
rlog(LOG_WARNING, "Failed to restore call ID '" STR_FORMAT_M "' from Redis: %s",
STR_FMT_M(callid),
err);
mutex_unlock(&r->lock);
if (c) if (c)
call_destroy(c); call_destroy(c);
@ -1909,6 +1915,7 @@ err1:
} }
if (c) if (c)
obj_put(c); obj_put(c);
log_info_clear();
} }
struct thread_ctx { struct thread_ctx {


Loading…
Cancel
Save