Skip to content

Commit d7e3bdd

Browse files
feat: include command name in output when purging api key events (ietf-tools#4724)
1 parent 100a053 commit d7e3bdd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ietf/person/management/commands/purge_old_personal_api_key_events.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ def _format_count(count, unit='day'):
2828
if keep_days < 0:
2929
raise CommandError('Negative keep_days not allowed ({} was specified)'.format(keep_days))
3030

31+
self.stdout.write('purge_old_personal_api_key_events: Finding events older than {}\n'.format(_format_count(keep_days)))
3132
if dry_run:
3233
self.stdout.write('Dry run requested, records will not be deleted\n')
33-
34-
self.stdout.write('Finding events older than {}\n'.format(_format_count(keep_days)))
3534
self.stdout.flush()
3635

3736
now = timezone.now()

0 commit comments

Comments
 (0)