Merge pull request #17425 from edx/jmbowman/PLAT-1949
PLAT-1949 Less cluttered management command output
This commit is contained in:
@@ -17,5 +17,5 @@ def get_apps(project_type):
|
||||
for app_config in registry.get_app_configs(project_type)
|
||||
if getattr(app_config, constants.PLUGIN_APP_CLASS_ATTRIBUTE_NAME, None) is not None
|
||||
]
|
||||
log.info(u'Plugin Apps: Found %s', plugin_apps)
|
||||
log.debug(u'Plugin Apps: Found %s', plugin_apps)
|
||||
return plugin_apps
|
||||
|
||||
@@ -23,7 +23,7 @@ def _iter_plugins(project_type, settings_type):
|
||||
for app_config in registry.get_app_configs(project_type):
|
||||
settings_config = _get_config(app_config, project_type, settings_type)
|
||||
if settings_config is None:
|
||||
log.info(
|
||||
log.debug(
|
||||
u'Plugin Apps [Settings]: Did NOT find %s for %s and %s',
|
||||
app_config.name,
|
||||
project_type,
|
||||
@@ -33,7 +33,7 @@ def _iter_plugins(project_type, settings_type):
|
||||
|
||||
plugin_settings_path = utils.get_module_path(app_config, settings_config, constants.PluginSettings)
|
||||
|
||||
log.info(u'Plugin Apps [Settings]: Found %s for %s and %s', app_config.name, project_type, settings_type)
|
||||
log.debug(u'Plugin Apps [Settings]: Found %s for %s and %s', app_config.name, project_type, settings_type)
|
||||
yield utils.import_module(plugin_settings_path)
|
||||
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@ def _iter_plugins(project_type):
|
||||
for app_config in registry.get_app_configs(project_type):
|
||||
signals_config = _get_config(app_config, project_type)
|
||||
if signals_config is None:
|
||||
log.info(u'Plugin Apps [Signals]: Did NOT find %s for %s', app_config.name, project_type)
|
||||
log.debug(u'Plugin Apps [Signals]: Did NOT find %s for %s', app_config.name, project_type)
|
||||
continue
|
||||
|
||||
signals_module_path = utils.get_module_path(app_config, signals_config, constants.PluginSignals)
|
||||
signals_module = utils.import_module(signals_module_path)
|
||||
|
||||
log.info(
|
||||
log.debug(
|
||||
u'Plugin Apps [Signals]: Found %s with %d receiver(s) for %s',
|
||||
app_config.name,
|
||||
len(signals_config.get(constants.PluginSignals.RECEIVERS, [])),
|
||||
|
||||
@@ -31,13 +31,13 @@ def _iter_plugins(project_type):
|
||||
for app_config in registry.get_app_configs(project_type):
|
||||
url_config = _get_config(app_config, project_type)
|
||||
if url_config is None:
|
||||
log.info(u'Plugin Apps [URLs]: Did NOT find %s for %s', app_config.name, project_type)
|
||||
log.debug(u'Plugin Apps [URLs]: Did NOT find %s for %s', app_config.name, project_type)
|
||||
continue
|
||||
|
||||
urls_module_path = utils.get_module_path(app_config, url_config, constants.PluginURLs)
|
||||
url_config[constants.PluginURLs.NAMESPACE] = url_config.get(constants.PluginURLs.NAMESPACE, app_config.name)
|
||||
|
||||
log.info(
|
||||
log.debug(
|
||||
u'Plugin Apps [URLs]: Found %s with namespace %s for %s',
|
||||
app_config.name,
|
||||
url_config[constants.PluginURLs.NAMESPACE],
|
||||
|
||||
Reference in New Issue
Block a user