From bba835d4863a50da83f304bb435994e99f026356 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 26 Mar 2026 07:52:47 +0100 Subject: [PATCH] put/max-resource-size: cosmetic number format --- radicale/app/put.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/app/put.py b/radicale/app/put.py index b9b764c8..a9c2d144 100644 --- a/radicale/app/put.py +++ b/radicale/app/put.py @@ -105,11 +105,11 @@ def prepare(vobject_items: List[vobject.base.Component], path: str, raise size = len(item.serialize()) if (size > max_resource_size): - logger.warning("PUT request contains item with UID %r size %d > limit %d: %r", item.uid, size, max_resource_size, path) + logger.warning("PUT request contains item with UID %r size %s > limit %s: %r", item.uid, utils.format_unit(size, binary=True), utils.format_unit(max_resource_size, binary=True), path) # Use OverflowError as flag for max_resource_size raise OverflowError else: - logger.debug("PUT request contains item with UID %r size %d <= limit %d: %r", item.uid, size, max_resource_size, path) + logger.debug("PUT request contains item with UID %r size %s <= limit %s: %r", item.uid, utils.format_unit(size, binary=True), utils.format_unit(max_resource_size, binary=True), path) items.append(item) elif write_whole_collection and tag == "VADDRESSBOOK": for vobject_item in vobject_items: