You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.style.MIGRATE_HEADING("Linting for '%s':"%app_label) +"\n"
)
formigrationinapp_migrations:
linter.lint_migration(migration)
iflinter.has_errors:
ifnotshould_keep_migration():
self.delete_migration(migration)
linter.reset_counters()
It would be good if this would behave in the same way, possibly by factoring it out.
It is especially an issue when using something like logging.basicConfig(level=logging.DEBUG) in manage.py.
It can be fixed by setting the logger's level explicitly, e.g. in Django's LOGGING setting, but then the adjustment of the logger based on verbosity would override it. This might be acceptable, although it should maybe depend on if the logger's level was set explicitly then?
The text was updated successfully, but these errors were encountered:
The logging library is used for output processing.
For the
lintmigrations
command it gets adjusted here:django-migration-linter/django_migration_linter/management/commands/lintmigrations.py
Lines 148 to 153 in 8e56562
This gets not done with the integration into
makemigrations
:django-migration-linter/django_migration_linter/management/commands/makemigrations.py
Lines 47 to 90 in 8e56562
It would be good if this would behave in the same way, possibly by factoring it out.
It is especially an issue when using something like
logging.basicConfig(level=logging.DEBUG)
inmanage.py
.It can be fixed by setting the logger's level explicitly, e.g. in Django's
LOGGING
setting, but then the adjustment of the logger based on verbosity would override it. This might be acceptable, although it should maybe depend on if the logger's level was set explicitly then?The text was updated successfully, but these errors were encountered: