From afe529fa0ad01495a67aca2060b240e15b6e9b4f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 17 Jun 2022 15:17:27 +0200 Subject: [PATCH] Updated log output --- LXMF/LXMRouter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/LXMF/LXMRouter.py b/LXMF/LXMRouter.py index 356d00b..fa9ea51 100644 --- a/LXMF/LXMRouter.py +++ b/LXMF/LXMRouter.py @@ -309,7 +309,12 @@ def enable_propagation(self): self.propagation_destination.register_request_handler(LXMPeer.OFFER_REQUEST_PATH, self.offer_request, allow = RNS.Destination.ALLOW_ALL) self.propagation_destination.register_request_handler(LXMPeer.MESSAGE_GET_PATH, self.message_get_request, allow = RNS.Destination.ALLOW_ALL) - RNS.log("LXMF Propagation Node message store size is "+RNS.prettysize(self.message_storage_size()), RNS.LOG_DEBUG) + if self.message_storage_limit != None: + limit_str = ", limit is "+RNS.prettysize(self.message_storage_limit) + else: + limit_str = "" + + RNS.log("LXMF Propagation Node message store size is "+RNS.prettysize(self.message_storage_size())+limit_str, RNS.LOG_DEBUG) self.announce_propagation_node()