feat: include command name in output when purging api key events (#4724)

This commit is contained in:
Jennifer Richards 2022-11-08 11:54:00 -04:00 committed by GitHub
parent 100a0534cb
commit d7e3bddeb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,10 +28,9 @@ class Command(BaseCommand):
if keep_days < 0:
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:
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()
now = timezone.now()