Repository: james-project
Updated Branches:
  refs/heads/master 63d7c108c -> 01c3bd1a3


JAMES-2087 Do not format expensive log in ElasticSearchIndexer


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a1158fe9
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a1158fe9
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a1158fe9

Branch: refs/heads/master
Commit: a1158fe996cf1438852185c260a270d353792cec
Parents: 02d86a4
Author: benwa <[email protected]>
Authored: Tue Jul 4 16:41:38 2017 +0700
Committer: benwa <[email protected]>
Committed: Tue Jul 4 16:58:54 2017 +0700

----------------------------------------------------------------------
 .../java/org/apache/james/backends/es/ElasticSearchIndexer.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/a1158fe9/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/ElasticSearchIndexer.java
----------------------------------------------------------------------
diff --git 
a/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/ElasticSearchIndexer.java
 
b/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/ElasticSearchIndexer.java
index 658484b..d637be6 100644
--- 
a/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/ElasticSearchIndexer.java
+++ 
b/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/ElasticSearchIndexer.java
@@ -99,7 +99,7 @@ public class ElasticSearchIndexer {
     
     public IndexResponse indexMessage(String id, String content) {
         checkArgument(content);
-        LOGGER.debug(String.format("Indexing %s: %s", id, content));
+        LOGGER.debug("Indexing {}: {}", id, content);
         return client.prepareIndex(indexName.getValue(), typeName.getValue(), 
id)
             .setSource(content)
             .get();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to