Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ietf/blobdb/replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def replicate_blob(bucket, name):
blob = fetch_blob_via_sql(bucket, name)
if blob is None:
if verbose_logging_enabled():
log.log("Deleting {bucket}:{name} from replica")
log.log(f"Deleting {bucket}:{name} from replica")
try:
destination_storage.delete(name)
except Exception as e:
log.log("Failed to delete {bucket}:{name} from replica: {e}")
log.log(f"Failed to delete {bucket}:{name} from replica: {e}")
raise ReplicationError from e
else:
# Add metadata expected by the MetadataS3Storage
Expand All @@ -170,7 +170,7 @@ def replicate_blob(bucket, name):
try:
destination_storage.save(name, file_with_metadata)
except Exception as e:
log.log("Failed to save {bucket}:{name} to replica: {e}")
log.log(f"Failed to save {bucket}:{name} to replica: {e}")
raise ReplicationError from e


Expand Down
Loading