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.
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2016-09-17 13:48:42 -04:00
1 parent 314eddfcae
commit 8ce6312190
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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])