ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Quieten elasticsearch
Date Thu, 10 Nov 2016 20:17:45 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 17e5e94c7 -> d21cf3a2f


Quieten elasticsearch

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/d21cf3a2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/d21cf3a2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/d21cf3a2

Branch: refs/heads/master
Commit: d21cf3a2f8f099000bd39fb23c8c8e03e10fa046
Parents: 17e5e94
Author: Sebb <sebb@apache.org>
Authored: Thu Nov 10 20:17:29 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Thu Nov 10 20:17:29 2016 +0000

----------------------------------------------------------------------
 tools/setup.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d21cf3a2/tools/setup.py
----------------------------------------------------------------------
diff --git a/tools/setup.py b/tools/setup.py
index 082a331..efb74b1 100755
--- a/tools/setup.py
+++ b/tools/setup.py
@@ -408,6 +408,9 @@ def createIndex():
     
 if not args.noi:
     try:
+        import logging
+        # elasticsearch logs lots of warnings on retries/connection failure
+        logging.getLogger("elasticsearch").setLevel(logging.ERROR)
         createIndex()
     except Exception as e:
         print("Index creation failed: %s" % e)


Mime
View raw message