Skip to content

Commit

Permalink
feat: log more verbosely expired services
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 27, 2024
1 parent e0861b8 commit c867052
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions weblate_web/management/commands/backups_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit c867052

Please sign in to comment.