You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/11/10 20:17:45 UTC
incubator-ponymail git commit: Quieten elasticsearch
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 <se...@apache.org>
Authored: Thu Nov 10 20:17:29 2016 +0000
Committer: Sebb <se...@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)