From fda3f9742bebfc8ebe3bd3e7daefe0727a431d06 Mon Sep 17 00:00:00 2001 From: Jefferson Stachelski Date: Mon, 19 Oct 2015 19:21:03 -0200 Subject: Moved set gnupg loggin level to right place --- service/pixelated/config/leap.py | 2 -- service/pixelated/config/logger.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'service/pixelated/config') 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() + -- cgit v1.2.3