Fixes #129 - use single logger

This commit is contained in:
David-Wobrock committed 2020-11-30 21:53:38 +01:00
1 parent 6ab1d58c47
commit e51073ef46
4 files changed
+4 -3

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ Features/fixes:
* Add warning detection on RunPython call when model variable name is not the same as model class name
* Run checks on RunSQL migration operations
* Rename the RunPython data migration lint checks for improved consistency
* Refactor and commonise the loggers, so that all modules the `django_migration_linter` logger
Others:
* Switched from Travis CI to GitHub Actions for tests
+1 -1
View File
@@ -24,7 +24,7 @@ from .operations import IgnoreMigration
from .sql_analyser import analyse_sql_statements
from .utils import clean_bytes_to_str, get_migration_abspath, split_migration_path
logger = logging.getLogger(__name__)
logger = logging.getLogger("django_migration_linter")
@unique
@@ -7,7 +7,7 @@ from django_migration_linter.sql_analyser import (
SqliteAnalyser,
)
logger = logging.getLogger(__name__)
logger = logging.getLogger("django_migration_linter")
def get_sql_analyser(database_vendor, exclude_migration_tests=None):
+1 -1
View File
@@ -3,7 +3,7 @@ import re
from .utils import update_migration_tests
logger = logging.getLogger(__name__)
logger = logging.getLogger("django_migration_linter")
def has_not_null_column(sql_statements, **kwargs):