Reduce logging noise

- No longer list Attract's RNA classes, these haven't changed in a long
  time and it's not interesting to see.
- Reduced log level when updating internal state. The result of the update
  is already logged at INFO level.
This commit is contained in:
Sybren A. Stüvel 2020-11-12 12:31:17 +01:00
parent 70de9741df
commit d77acfb9c8
2 changed files with 2 additions and 3 deletions

View File

@ -1007,7 +1007,6 @@ def deactivate():
_rna_classes = [cls for cls in locals().values() _rna_classes = [cls for cls in locals().values()
if isinstance(cls, type) and cls.__name__.startswith('ATTRACT')] if isinstance(cls, type) and cls.__name__.startswith('ATTRACT')]
log.info('RNA classes:\n%s', '\n'.join([repr(cls) for cls in _rna_classes]))
def register(): def register():

View File

@ -70,8 +70,8 @@ def handle_project_update(_=None, _2=None):
with mark_as_loading(): with mark_as_loading():
prefs = preferences() prefs = preferences()
project_id = prefs.project.project project_id = prefs.project.project
log.info('Updating internal state to reflect extensions enabled on current project %s.', log.debug('Updating internal state to reflect extensions enabled on current project %s.',
project_id) project_id)
project_extensions.cache_clear() project_extensions.cache_clear()