Opened 6 weeks ago

Closed 4 weeks ago

#36525 closed Cleanup/optimization (fixed)

The default verbosity of collectstatic --clear is too verbose

Reported by: blighj Owned by: blighj
Component: contrib.staticfiles Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This is a follow up from ticket:26583, which is about the verbosity of the skipped files. There was a PR discussion on that ticket which proposed that the output of collectstatic --clear is too verbose.
Currently it lists a message for every file deleted. It would be a better experience if it instead only showed a summary at verbosity1. The current behaviour could be moved to verbosity 2 and above.
There is the bases for a patch as part of the PR work on the other ticket, but it was removed from that PR to keep its scope more focused.
If this is accepted I can quickly do the git work necessary to create a PR with those changes.

The summary would change to something like:

10 static files deleted, 10 files copied

Change History (7)

comment:1 by blighj, 6 weeks ago

Summary: The default verbosity of collectstatic --clear is to verboseThe default verbosity of collectstatic --clear is too verbose

comment:2 by Clifford Gama, 6 weeks ago

Triage Stage: UnreviewedAccepted

comment:3 by blighj, 5 weeks ago

Has patch: set

comment:4 by Sarah Boyce, 4 weeks ago

Needs tests: set

comment:5 by blighj, 4 weeks ago

Needs tests: unset

comment:6 by Sarah Boyce, 4 weeks ago

Triage Stage: AcceptedReady for checkin

comment:7 by Sarah Boyce <42296566+sarahboyce@…>, 4 weeks ago

Resolution: fixed
Status: assignedclosed

In c1aa4a7:

Fixed #36525 -- Silenced individual deleted file messages in collectstatic --clear's default verbosity.

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