feat: include command name in output when purging api key events (#4724)
This commit is contained in:
parent
100a0534cb
commit
d7e3bddeb4
|
@ -28,10 +28,9 @@ class Command(BaseCommand):
|
||||||
if keep_days < 0:
|
if keep_days < 0:
|
||||||
raise CommandError('Negative keep_days not allowed ({} was specified)'.format(keep_days))
|
raise CommandError('Negative keep_days not allowed ({} was specified)'.format(keep_days))
|
||||||
|
|
||||||
|
self.stdout.write('purge_old_personal_api_key_events: Finding events older than {}\n'.format(_format_count(keep_days)))
|
||||||
if dry_run:
|
if dry_run:
|
||||||
self.stdout.write('Dry run requested, records will not be deleted\n')
|
self.stdout.write('Dry run requested, records will not be deleted\n')
|
||||||
|
|
||||||
self.stdout.write('Finding events older than {}\n'.format(_format_count(keep_days)))
|
|
||||||
self.stdout.flush()
|
self.stdout.flush()
|
||||||
|
|
||||||
now = timezone.now()
|
now = timezone.now()
|
||||||
|
|
Loading…
Reference in a new issue