Skip to content

Commit

Permalink
Only log GETs
Browse files Browse the repository at this point in the history
Signed-off-by: Mairi Dulaney <[email protected]>
  • Loading branch information
mldulaney authored and madprime committed Apr 8, 2019
1 parent 3f60873 commit a4d6656
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions open_humans/management/commands/vacuum_log_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def handle(self, *args, **options):
# Filter out things we don't care to log
if settings.AWS_STORAGE_BUCKET_NAME in url:
continue
if "GET" not in str(aws_log_entry.operation):
continue
if any(
blacklist_item in url for blacklist_item in AWS_LOG_KEY_BLACKLIST
):
Expand Down

0 comments on commit a4d6656

Please sign in to comment.