From c8670522a0fe52c3263d4c9d155a4ceb3e725630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 27 Nov 2024 10:35:06 +0100 Subject: [PATCH] feat: log more verbosely expired services --- weblate_web/management/commands/backups_sync.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/weblate_web/management/commands/backups_sync.py b/weblate_web/management/commands/backups_sync.py index 8efe7543a..f610befbb 100644 --- a/weblate_web/management/commands/backups_sync.py +++ b/weblate_web/management/commands/backups_sync.py @@ -123,9 +123,11 @@ def check_unpaid(self, backup_services: dict[str, Service]) -> None: kind = "backup" expires = service.backup_subscriptions[0].expires - self.stderr.write( - f"not paid {kind}: {service.pk} ({service.customer}) {expires}: {service.backup_directory}" - ) + self.stderr.write(f"not paid {kind}: {service.pk} ({service.customer})") + self.stderr.write(f" directory: {service.backup_directory}") + self.stderr.write(f" expires: {expires}") + self.stderr.write(f" size: {service.backup_size}") + self.stderr.write(f" mtime: {service.backup_timestamp}") def handle(self, *args, **options): backup_services: dict[str, Service] = {