Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066248
D1904.id6401.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
857 B
Subscribers
None
D1904.id6401.diff
View Options
diff --git a/swh/journal/backfill.py b/swh/journal/backfill.py
--- a/swh/journal/backfill.py
+++ b/swh/journal/backfill.py
@@ -368,6 +368,13 @@
yield record
+def _format_range_bound(bound):
+ if isinstance(bound, bytes):
+ return bound.hex()
+ else:
+ return str(bound)
+
+
MANDATORY_KEYS = ['brokers', 'storage_dbconn', 'prefix', 'client_id']
@@ -438,7 +445,8 @@
for range_start, range_end in RANGE_GENERATORS[object_type](
start_object, end_object):
logger.info('Processing %s range %s to %s', object_type,
- range_start, range_end)
+ _format_range_bound(range_start),
+ _format_range_bound(range_end))
for obj in fetch(
db, object_type, start=range_start, end=range_end,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 4:00 AM (10 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222126
Attached To
D1904: Backfiller: Display bytes range bounds as hexadecimal.
Event Timeline
Log In to Comment