logging config fixed (now logging is made not by root logger, but by 'django_migration_linter.sql_analyzer')

This commit is contained in:
Serj Zavadsky authored and David Wobrock committed 2018-07-19 22:01:12 +02:00
1 parent 7364455073
commit 10d36bbab2
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -13,7 +13,7 @@
# limitations under the License.
from __future__ import print_function
import logging as log
import logging
import os
import re
from subprocess import Popen, PIPE
@@ -21,6 +21,8 @@ import sys
from . import utils
from .sql_analyser import analyse_sql_statements
log = logging.getLogger(__name__)
class MigrationLinter(object):
MIGRATION_FOLDER_NAME = 'migrations'
+3 -1
View File
@@ -13,7 +13,9 @@
# limitations under the License.
import re
import logging as log
import logging
log = logging.getLogger(__name__)
def has_default(sql, **kwargs):