Change-Id: Ia18cfa8ea7ef8536957c0807112620d2e0e2a976
if(status != MONGO_OK)
{
ERROR ( "write_mongodb plugin: error inserting record: %d", node->conn->err);
- if(node->conn->err == MONGO_BSON_INVALID)
- {
- ERROR (node->conn->errstr);
- } else if ( record.err)
- {
- ERROR (record.errstr);
- }
-
+ if (node->conn->err == MONGO_BSON_INVALID)
+ ERROR ("write_mongodb plugin: %s", node->conn->errstr);
+ else if (record.err)
+ ERROR ("write_mongodb plugin: %s", record.errstr);
}
-
pthread_mutex_unlock (&node->lock);
return (0);