Added debug info

This commit is contained in:
Ruben S. Montero committed 2018-08-20 18:52:15 +02:00
1 parent 5fc8112d7e
commit 39fd0ddd10
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;
}