Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweak logging

  • Loading branch information...
commit 6b6d9a77ba05c2c99bef5f192299f71323834df4 1 parent d3482f9
@mschoch mschoch authored
View
4 src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java
@@ -231,10 +231,9 @@ public boolean ensureFullCommit(String database) {
// keep a map of the id - rev for building the response
Map<String,String> revisions = new HashMap<String, String>();
+ logger.debug("Bulk doc entry is {}", docs);
for (Map<String, Object> doc : docs) {
- logger.debug("Bulk doc entry is {}", docs);
-
// these are the top-level elements that could be in the document sent by Couchbase
Map<String, Object> meta = (Map<String, Object>)doc.get("meta");
Map<String, Object> json = (Map<String, Object>)doc.get("json");
@@ -318,6 +317,7 @@ public boolean ensureFullCommit(String database) {
if(bulkItemResponse.isFailed()) {
itemResponse.put("error", "failed");
itemResponse.put("reason", bulkItemResponse.getFailureMessage());
+ logger.error("indexing error for id: {} reason: {}", itemId, bulkItemResponse.getFailureMessage());
} else {
itemResponse.put("rev", revisions.get(itemId));
}
Please sign in to comment.
Something went wrong with that request. Please try again.