james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [1/2] james-project git commit: JAMES-2087 Do not format expensive log in ElasticSearchIndexer
Date Tue, 04 Jul 2017 11:56:38 GMT
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 <btellier@linagora.com>
Authored: Tue Jul 4 16:41:38 2017 +0700
Committer: benwa <btellier@linagora.com>
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message