Opened 6 years ago

Last modified 5 months ago

#26769 new New feature

Expose verbosity level in migrations

Reported by: Andrew Owned by:
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 (3)

comment:1 Changed 6 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.

comment:2 Changed 6 months ago by Jacob Walls

Owner: changed from nobody to Jacob Walls
Status: newassigned

comment:3 Changed 5 months ago by Jacob Walls

Owner: Jacob Walls deleted
Status: assignednew
Note: See TracTickets for help on using tickets.
Back to Top