diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-01-13 17:36:28 -0200 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-01-13 17:36:28 -0200 |
commit | 7e0f99eb7997b038c6ba651485afe5e5f75ecf2e (patch) | |
tree | 8b182bfba242cfa2a09eb3f820d2e9e2743a23c5 /service | |
parent | d0bb9b29f31de20a8f43d697de1d646583a72a12 (diff) |
Changed log level to INFO for the pixelated namespace and added basic info messages
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/application.py | 8 | ||||
-rw-r--r-- | service/pixelated/config/logger.py | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py index bca4d5e5..40608268 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -36,9 +36,14 @@ from leap.common.events import ( catalog as events ) +import logging + +log = logging.getLogger(__name__) + @defer.inlineCallbacks def start_user_agent(root_resource, leap_home, leap_session): + log.info('Bootstrap done, loading services for user %s' % leap_session.user_auth.username) services = Services(leap_home, leap_session) yield services.setup(leap_home, leap_session) @@ -55,6 +60,7 @@ def start_user_agent(root_resource, leap_home, leap_session): # soledad needs lots of threads reactor.threadpool.adjustPoolsize(5, 15) + log.info('Done, the user agent is ready to be used') def _ssl_options(sslkey, sslcert): @@ -73,6 +79,7 @@ def _ssl_options(sslkey, sslcert): def initialize(): + log.info('Starting the Pixelated user agent') args = arguments.parse_user_agent_args() logger.init(debug=args.debug) resource = RootResource() @@ -106,6 +113,7 @@ def initialize(): def start_site(config, resource): + log.info('Starting the API with the loading screen on port %s' % config.port) if config.sslkey and config.sslcert: reactor.listenSSL(config.port, PixelatedSite(resource), _ssl_options(config.sslkey, config.sslcert), interface=config.host) diff --git a/service/pixelated/config/logger.py b/service/pixelated/config/logger.py index 5c711981..52ecc4ed 100644 --- a/service/pixelated/config/logger.py +++ b/service/pixelated/config/logger.py @@ -31,5 +31,5 @@ def init(debug=False): filemode='a') observer = log.PythonLoggingObserver() - logging.getLogger('gnupg').setLevel(logging.WARN) + logging.getLogger('pixelated').setLevel(logging.INFO) observer.start() |