Fixes #129 - use single logger
This commit is contained in:
1 parent
6ab1d58c47
commit
e51073ef46
4 files changed
+4
-3
No files matched your search
@@ -13,6 +13,7 @@ Features/fixes:
|
|||||||
* Add warning detection on RunPython call when model variable name is not the same as model class name
|
* Add warning detection on RunPython call when model variable name is not the same as model class name
|
||||||
* Run checks on RunSQL migration operations
|
* Run checks on RunSQL migration operations
|
||||||
* Rename the RunPython data migration lint checks for improved consistency
|
* 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:
|
Others:
|
||||||
* Switched from Travis CI to GitHub Actions for tests
|
* Switched from Travis CI to GitHub Actions for tests
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from .operations import IgnoreMigration
|
|||||||
from .sql_analyser import analyse_sql_statements
|
from .sql_analyser import analyse_sql_statements
|
||||||
from .utils import clean_bytes_to_str, get_migration_abspath, split_migration_path
|
from .utils import clean_bytes_to_str, get_migration_abspath, split_migration_path
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger("django_migration_linter")
|
||||||
|
|
||||||
|
|
||||||
@unique
|
@unique
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from django_migration_linter.sql_analyser import (
|
|||||||
SqliteAnalyser,
|
SqliteAnalyser,
|
||||||
)
|
)
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger("django_migration_linter")
|
||||||
|
|
||||||
|
|
||||||
def get_sql_analyser(database_vendor, exclude_migration_tests=None):
|
def get_sql_analyser(database_vendor, exclude_migration_tests=None):
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import re
|
|||||||
|
|
||||||
from .utils import update_migration_tests
|
from .utils import update_migration_tests
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger("django_migration_linter")
|
||||||
|
|
||||||
|
|
||||||
def has_not_null_column(sql_statements, **kwargs):
|
def has_not_null_column(sql_statements, **kwargs):
|
||||||
|
|||||||
Reference in new issue
Block a user