Skip to content

Commit

Permalink
fixed log folder permissions. sorting output from aws
Browse files Browse the repository at this point in the history
  • Loading branch information
emaydeck-mozilla committed May 11, 2023
1 parent 938e8f4 commit b562aef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws_s3/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def delete_objects(self, object_keys: list):
if "Deleted" in response:
logger.info(
"Deleted objects '%s' from bucket '%s'.",
[del_obj["Key"] for del_obj in response["Deleted"]],
sorted([del_obj["Key"] for del_obj in response["Deleted"]]),
self.client.name,
)
if "Errors" in response:
Expand Down
2 changes: 1 addition & 1 deletion delete_s3_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _init_logging(self):

log_dir = os.path.dirname(self.log_file)
if not os.path.exists(log_dir):
os.mkdir(log_dir, mode=755)
os.mkdir(log_dir, mode=0o755)

file_handler = logging.FileHandler(self.log_file)
file_handler.setLevel(logging.INFO)
Expand Down

0 comments on commit b562aef

Please sign in to comment.