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/05 18:50:15 UTC

incubator-ponymail git commit: Suppress warnings from elasticsearch unless in --verbose mode

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master c3e4df220 -> e51725ebd


Suppress warnings from elasticsearch unless in --verbose mode

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

Branch: refs/heads/master
Commit: e51725ebdb0f01978078b510a9825706d56cf756
Parents: c3e4df2
Author: Sebb <se...@apache.org>
Authored: Sat Nov 5 18:49:57 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Sat Nov 5 18:49:57 2016 +0000

----------------------------------------------------------------------
 tools/archiver.py | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/e51725eb/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index c9b1347..0f422cd 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -521,6 +521,11 @@ if __name__ == '__main__':
     if args.verbose:
         import logging
         logging.basicConfig(stream=sys.stdout, level=logging.INFO)
+    else:
+        # elasticsearch logs lots of warnings on retries/connection failure
+        import logging
+        logging.getLogger("elasticsearch").setLevel(logging.ERROR)
+
         
     foo = Archiver(parseHTML = parseHTML)
     input_stream = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8', errors="ignore")