Skip to content

Commit

Permalink
DEBUG: print stack on begin migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
millerdev committed Jun 19, 2024
1 parent 73e3a9c commit e474bf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions corehq/sql_db/management/commands/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def add_arguments(self, parser):

@no_translations
def handle(self, *args, should_reindex, **options):
import traceback
traceback.print_stack()
result = super().handle(*args, **options)

if reindexer.should_reindex and should_reindex:
Expand Down
2 changes: 2 additions & 0 deletions corehq/sql_db/management/commands/migrate_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def add_arguments(self, parser):
help='Mark migrations as run without actually running them.')

def handle(self, app_label, migration_name, **options):
import traceback
traceback.print_stack()
args = []
if app_label is not None:
args.append(app_label)
Expand Down

0 comments on commit e474bf5

Please sign in to comment.