Browse Source

TT#14008 report Redis errors on restore failures

Change-Id: Id1090fe88d02896595ce4a45ac87953714e0d9d1
pull/1346/head
Richard Fuchs 4 years ago
parent
commit
acefaf1d3c
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      daemon/redis.c

+ 11
- 4
daemon/redis.c View File

@ -1951,11 +1951,17 @@ err1:
g_object_unref (parser);
if (rr_jsonStr)
freeReplyObject(rr_jsonStr);
log_info_clear();
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)
call_destroy(c);
@ -1971,6 +1977,7 @@ err1:
}
if (c)
obj_put(c);
log_info_clear();
}
struct thread_ctx {


Loading…
Cancel
Save