check/compact/analyze: show archive timestamp in local tz, fixes #8814

This commit is contained in:
Thomas Waldmann 2025-05-07 10:02:35 +02:00
parent 87b1d454cc
commit 2063da3b09
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
3 changed files with 12 additions and 4 deletions

View file

@ -2059,7 +2059,9 @@ class ArchiveChecker:
for i, info in enumerate(archive_infos):
pi.show(i)
archive_id, archive_id_hex = info.id, bin_to_hex(info.id)
logger.info(f"Analyzing archive {info.name} {info.ts} {archive_id_hex} ({i + 1}/{num_archives})")
logger.info(
f"Analyzing archive {info.name} {info.ts.astimezone()} {archive_id_hex} ({i + 1}/{num_archives})"
)
if archive_id not in self.chunks:
logger.error(f"Archive metadata block {archive_id_hex} is missing!")
self.error_found = True

View file

@ -43,11 +43,15 @@ class ArchiveAnalyzer:
i = 0
info = archive_infos[i]
pi.show(i)
logger.info(f"Analyzing archive {info.name} {info.ts} {bin_to_hex(info.id)} ({i + 1}/{num_archives})")
logger.info(
f"Analyzing archive {info.name} {info.ts.astimezone()} {bin_to_hex(info.id)} ({i + 1}/{num_archives})"
)
base = self.analyze_archive(info.id)
for i, info in enumerate(archive_infos[1:]):
pi.show(i + 1)
logger.info(f"Analyzing archive {info.name} {info.ts} {bin_to_hex(info.id)} ({i + 2}/{num_archives})")
logger.info(
f"Analyzing archive {info.name} {info.ts.astimezone()} {bin_to_hex(info.id)} ({i + 2}/{num_archives})"
)
new = self.analyze_archive(info.id)
self.analyze_change(base, new)
base = new

View file

@ -90,7 +90,9 @@ class ArchiveGarbageCollector:
total_size, total_files = 0, 0
for i, info in enumerate(archive_infos):
pi.show(i)
logger.info(f"Analyzing archive {info.name} {info.ts} {bin_to_hex(info.id)} ({i + 1}/{num_archives})")
logger.info(
f"Analyzing archive {info.name} {info.ts.astimezone()} {bin_to_hex(info.id)} ({i + 1}/{num_archives})"
)
archive = Archive(self.manifest, info.id)
# archive metadata size unknown, but usually small/irrelevant:
use_it(archive.id)