summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-11-21 20:44:01 -0200
committerdrebs <drebs@riseup.net>2017-11-22 08:23:59 -0200
commitf429355952bf008f9fa768b5c7f6186de4238bd5 (patch)
tree0cf601e06393d7d313a16fdf92fdb414399d0f46 /src/leap/soledad/server
parente8664be1edd380e3f0cf1ddea977da965ef38715 (diff)
[feature] make logs less noisy by monkey-patching twisted.internet.protocol.Factory
Diffstat (limited to 'src/leap/soledad/server')
-rw-r--r--src/leap/soledad/server/app.py6
1 files changed, 6 insertions, 0 deletions
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()