Skip to content

Commit 967fffa

Browse files
fix: f-strings for replicator log msgs (ietf-tools#10234)
1 parent 3b07c70 commit 967fffa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/blobdb/replication.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ def replicate_blob(bucket, name):
146146
blob = fetch_blob_via_sql(bucket, name)
147147
if blob is None:
148148
if verbose_logging_enabled():
149-
log.log("Deleting {bucket}:{name} from replica")
149+
log.log(f"Deleting {bucket}:{name} from replica")
150150
try:
151151
destination_storage.delete(name)
152152
except Exception as e:
153-
log.log("Failed to delete {bucket}:{name} from replica: {e}")
153+
log.log(f"Failed to delete {bucket}:{name} from replica: {e}")
154154
raise ReplicationError from e
155155
else:
156156
# Add metadata expected by the MetadataS3Storage
@@ -170,7 +170,7 @@ def replicate_blob(bucket, name):
170170
try:
171171
destination_storage.save(name, file_with_metadata)
172172
except Exception as e:
173-
log.log("Failed to save {bucket}:{name} to replica: {e}")
173+
log.log(f"Failed to save {bucket}:{name} to replica: {e}")
174174
raise ReplicationError from e
175175

176176

0 commit comments

Comments
 (0)