fix: replace logging with print

This commit is contained in:
Mike 2023-08-02 08:37:57 -04:00
parent 769c8f0304
commit 8a1cb6b646

View file

@ -3,13 +3,11 @@ import boto
import boto.s3.connection
import datetime as dt
from dotenv import load_dotenv
import logging
import os
import re
load_dotenv()
def get_s3_bucket(bucketname: str, host: str):
"""returns bucket object based
@ -68,7 +66,7 @@ def delete_keys(keys_to_delete: list, bucket):
"""
for k in keys_to_delete:
logging.info(f"Deleting key {k.name}")
print(f"Deleting key {k.name}")
bucket.delete_key(k)