Added debug info

(cherry picked from commit 39fd0ddd10)
This commit is contained in:
Ruben S. Montero committed 2018-08-22 12:25:49 +02:00
1 parent 69e9bbfc8a
commit f7f14f304c
1 file changed
+7
+7
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;
}