From f429355952bf008f9fa768b5c7f6186de4238bd5 Mon Sep 17 00:00:00 2001
From: drebs <drebs@riseup.net>
Date: Tue, 21 Nov 2017 20:44:01 -0200
Subject: [PATCH] [feature] make logs less noisy by monkey-patching
 twisted.internet.protocol.Factory

---
 src/leap/soledad/server/app.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/leap/soledad/server/app.py b/src/leap/soledad/server/app.py
index 2004de1e..d1a518f5 100644
--- a/src/leap/soledad/server/app.py
+++ b/src/leap/soledad/server/app.py
@@ -124,7 +124,13 @@ def create_services(local_port, public_port, application):
 # the application
 #
 
+def patch_noisy_factory():
+    from twisted.internet.protocol import Factory
+    Factory.noisy = False
+
+
 def run(application):
+    patch_noisy_factory()
     local_port = os.getenv('LOCAL_SERVICES_PORT', 2525)
     public_port = os.getenv('HTTPS_PORT', None)
     conf = get_config()
-- 
GitLab