Opened 4 years ago

Last modified 4 years ago

#26769 new New feature

Expose verbosity level in migrations

Reported by: Andrew Owned by: nobody
Component: Migrations Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It would be especially helpful with data migrations if one could print status/progress information depending on the "verbosity" option specified with the management command. The management command already prints to console, so this would let custom migration operations do the same thing. For some data migrations, it's useful to log custom status information, but you don't always want this displayed every time (e.g. when setting up a test database).

Perhaps verbosity-level could be passed to RunPython callbacks as an optional argument? Or perhaps the Migration object could expose some sort of logging functionality?

Change History (1)

comment:1 Changed 4 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

I guess we could give this a try though passing verbosity all the way from the management command to the migration operations may be a bit ugly.

Note: See TracTickets for help on using tickets.
Back to Top