summaryrefslogtreecommitdiff
path: root/service/pixelated/config
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-10-19 19:21:03 -0200
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-10-19 19:21:03 -0200
commitfda3f9742bebfc8ebe3bd3e7daefe0727a431d06 (patch)
tree63a164867c0a29ed9781b731be19dd69cab2a652 /service/pixelated/config
parent173150ed2fc28adf01f1ae96f8f92a30c997d51e (diff)
Moved set gnupg loggin level to right place
Diffstat (limited to 'service/pixelated/config')
-rw-r--r--service/pixelated/config/leap.py2
-rw-r--r--service/pixelated/config/logger.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/config/leap.py b/service/pixelated/config/leap.py
index b32f0ec5..83b913a8 100644
--- a/service/pixelated/config/leap.py
+++ b/service/pixelated/config/leap.py
@@ -6,7 +6,6 @@ from pixelated.bitmask_libraries.certs import LeapCertificate
from pixelated.bitmask_libraries.provider import LeapProvider
from pixelated.bitmask_libraries.session import LeapSessionFactory
from twisted.internet import defer
-import logging
_CREATE_WELCOME_MAIL = False
@@ -33,7 +32,6 @@ def initialize_leap(leap_provider_cert,
provider = LeapProvider(provider, config)
LeapCertificate(provider).setup_ca_bundle()
leap_session = LeapSessionFactory(provider).create(username, password)
- logging.getLogger('gnupg').setLevel('WARN')
if initial_sync:
leap_session = yield leap_session.initial_sync()
diff --git a/service/pixelated/config/logger.py b/service/pixelated/config/logger.py
index c584d5bb..5bc2ed49 100644
--- a/service/pixelated/config/logger.py
+++ b/service/pixelated/config/logger.py
@@ -31,4 +31,6 @@ def init(debug=False):
filemode='a')
observer = log.PythonLoggingObserver()
+ logging.getLogger('gnupg').setLevel('WARN')
observer.start()
+