Add verbosity prints

This commit is contained in:
david_wobrock committed 2017-05-26 10:51:59 +02:00
1 parent 271293919a
commit a6c6e2d45a
1 file changed
+3
+3
View File
@@ -62,9 +62,11 @@ class MigrationLinter:
self.commit_id = line.strip()
break
process.wait()
log.info('Operating until git identifier {0}'.format(self.commit_id))
# Get changes since specified commit
git_diff_command = 'cd {0} && git diff --name-only {1}'.format(self.location, self.commit_id)
log.info('Executing {0}'.format(git_diff_command))
diff_process = Popen(git_diff_command, shell=True, stdout=PIPE, stderr=PIPE)
for line in diff_process.stdout.readlines():
# Only gather lines that include migrations
@@ -117,6 +119,7 @@ class MigrationLinter:
def django_sqlmigrate(self, app_name, migration_name):
git_diff_command = 'cd {0} && python manage.py sqlmigrate {1} {2}'.format(self.location, app_name, migration_name)
log.info('Executing {0}'.format(git_diff_command))
diff_process = Popen(git_diff_command, shell=True, stdout=PIPE, stderr=PIPE)
sql_statements = []
for line in diff_process.stdout.readlines():