From 8ce6312190bcb007c13b1173f0a7b2fdbf736af6 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 10 Sep 2016 17:49:16 +0530 Subject: [PATCH] Tune log message verbosity It is no longer very important to show Django configured applications and module import messages because in practice we have rarely ever seen being useful anywhere but for development. Just print the module load order just once. --- plinth/__main__.py | 4 ++-- plinth/module_loader.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plinth/__main__.py b/plinth/__main__.py index 9b3e16092..494c0a4d0 100644 --- a/plinth/__main__.py +++ b/plinth/__main__.py @@ -243,9 +243,9 @@ def configure_django(): USE_X_FORWARDED_HOST=cfg.use_x_forwarded_host) django.setup(set_prefix=True) - logger.info('Configured Django with applications - %s', applications) + logger.debug('Configured Django with applications - %s', applications) - logger.info('Creating or adding new tables to data file') + logger.debug('Creating or adding new tables to data file') verbosity = 1 if cfg.debug else 0 django.core.management.call_command('migrate', '--fake-initial', interactive=False, verbosity=verbosity) diff --git a/plinth/module_loader.py b/plinth/module_loader.py index 272c1ae78..6fae7beec 100644 --- a/plinth/module_loader.py +++ b/plinth/module_loader.py @@ -45,7 +45,7 @@ def load_modules(): pre_module_loading.send_robust(sender="module_loader") modules = {} for module_import_path in get_modules_to_load(): - logger.info('Importing %s', module_import_path) + logger.debug('Importing %s', module_import_path) module_name = module_import_path.split('.')[-1] try: modules[module_name] = importlib.import_module(module_import_path) @@ -71,7 +71,7 @@ def load_modules(): logger.error('Unsatified dependency for module - %s', module_name) - logger.debug('Module load order - %s', ordered_modules) + logger.info('Module load order - %s', ordered_modules) for module_name in ordered_modules: _initialize_module(module_name, modules[module_name])