X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fredis%2Fasynchiredisclustercommanddispatcher.cpp;h=86cd95fb0fcb88a3b529378524ad3c097ea2ee0f;hb=d565df6613d97c08664a00f3fbc7cb5fdcf233f6;hp=72708866e3eb95cae22c6e2b97ae58b5ee88ede2;hpb=ef2bf51d04aaf01fa0cabdcaf905b23423067662;p=ric-plt%2Fsdl.git diff --git a/src/redis/asynchiredisclustercommanddispatcher.cpp b/src/redis/asynchiredisclustercommanddispatcher.cpp index 7270886..86cd95f 100644 --- a/src/redis/asynchiredisclustercommanddispatcher.cpp +++ b/src/redis/asynchiredisclustercommanddispatcher.cpp @@ -14,6 +14,11 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #include "private/redis/asynchiredisclustercommanddispatcher.hpp" #include #include @@ -48,13 +53,11 @@ namespace void disconnectCb(const redisClusterAsyncContext* acc, const redisAsyncContext* ac, int status) { - if (status) - { - std::ostringstream msg; - msg << "redis cluster instance disconnected, fd: " << ac->c.fd - << ", status: " << ac->err; - logDebugOnce(msg.str()); - } + std::ostringstream msg; + msg << "redis cluster instance disconnected, status: " << ac->err + << ", " << ac->errstr << ", fd: " << ac->c.fd << std::endl; + logDebugOnce(msg.str()); + auto instance(static_cast(acc->data)); instance->handleDisconnect(ac); }