1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Added debug info

(cherry picked from commit 39fd0ddd100c58403f26db64d236f6d9c9d8145f)
This commit is contained in:
Ruben S. Montero 2018-08-20 18:52:15 +02:00
parent 69e9bbfc8a
commit f7f14f304c

View File

@ -200,6 +200,13 @@ int RaftReplicaThread::replicate()
if ( raftm->xmlrpc_replicate_log(follower_id, &lr, success, follower_term,
error) != 0 )
{
std::ostringstream oss;
oss << "Faild to replicate log record at index: " << next_index
<< " on follower: " << follower_id << ", error: " << error;
NebulaLog::log("RCM", Log::DEBUG, oss);
return -1;
}