Skip to content

Commit

Permalink
Removed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhellander committed Feb 12, 2025
1 parent a448620 commit 76658f2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fedn/network/storage/s3/saasrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ def __init__(self, config):
# Check environment variables first. If they are not set, then use values from config file.
access_key = os.environ.get("FEDN_ACCESS_KEY", config["storage_access_key"])
secret_key = os.environ.get("FEDN_SECRET_KEY", config["storage_secret_key"])
logger.info("keys:")
logger.info(access_key)
logger.info(secret_key)
storage_hostname = os.environ.get("FEDN_STORAGE_HOSTNAME", config["storage_hostname"])
storage_port = os.environ.get("FEDN_STORAGE_PORT", config["storage_port"])
storage_secure_mode = os.environ.get("FEDN_STORAGE_SECURE_MODE", config["storage_secure_mode"])
Expand Down Expand Up @@ -66,8 +63,8 @@ def set_artifact(self, instance_name, instance, bucket, is_file=False):
logger.info(bucket)
logger.info(instance)
try:
result = self.client.fput_object(bucket, instance_name, instance)
logger.info(result)
self.client.fput_object(bucket, instance_name, instance)
# logger.info(result)
except Exception as e:
logger.info("Failed to upload file.")
logger.info(e)
Expand Down

0 comments on commit 76658f2

Please sign in to comment.