Use logger.debug() for lowlevel information
Effectivly this will prevent printing those lines in a lot of default setups. Those lines make it quite hard to understand the output of the liter.
This commit is contained in:
1 parent
0bf7d5cc39
commit
b7c3ee38d7
1 file changed
+3
-3
@@ -86,10 +86,10 @@ def analyse_sql_statements(sql_statements):
|
|||||||
for test in migration_tests:
|
for test in migration_tests:
|
||||||
if test["fn"](statement, errors=errors):
|
if test["fn"](statement, errors=errors):
|
||||||
if test["code"] == IGNORED_MIGRATION:
|
if test["code"] == IGNORED_MIGRATION:
|
||||||
logger.info("Testing {0} -- IGNORING MIGRATION".format(statement))
|
logger.debug("Testing {0} -- IGNORING MIGRATION".format(statement))
|
||||||
ignored = True
|
ignored = True
|
||||||
else:
|
else:
|
||||||
logger.info("Testing {0} -- ERROR".format(statement))
|
logger.debug("Testing {0} -- ERROR".format(statement))
|
||||||
table_search = re.search(
|
table_search = re.search(
|
||||||
"TABLE `([^`]*)`", statement, re.IGNORECASE
|
"TABLE `([^`]*)`", statement, re.IGNORECASE
|
||||||
)
|
)
|
||||||
@@ -102,5 +102,5 @@ def analyse_sql_statements(sql_statements):
|
|||||||
}
|
}
|
||||||
errors.append(err)
|
errors.append(err)
|
||||||
else:
|
else:
|
||||||
logger.info("Testing {0} -- PASSED".format(statement))
|
logger.debug("Testing {0} -- PASSED".format(statement))
|
||||||
return {"errors": errors, "ignored": ignored}
|
return {"errors": errors, "ignored": ignored}
|
||||||
Reference in new issue
Block a user