Skip to content

Commit

Permalink
feat: include command name in output when purging api key events (#4724)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards authored Nov 8, 2022
1 parent 100a053 commit d7e3bdd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ def _format_count(count, unit='day'):
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()
Expand Down

0 comments on commit d7e3bdd

Please sign in to comment.