From f06d46fa16bba37e07a465b4f5fc681798e39928 Mon Sep 17 00:00:00 2001 From: Evgeny Gusarov Date: Fri, 22 Sep 2023 17:21:14 +0300 Subject: [PATCH] Log quorum --- sw_utils/ipfs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sw_utils/ipfs.py b/sw_utils/ipfs.py index 6820e15..e3b4998 100644 --- a/sw_utils/ipfs.py +++ b/sw_utils/ipfs.py @@ -224,6 +224,7 @@ async def _upload(self, coros: list) -> str: ipfs_hash = max(ipfs_hashes, key=ipfs_hashes.get) # type: ignore count = ipfs_hashes[ipfs_hash] if count < self.quorum: + logger.warning('quorum: %s, ipfs_hashes: %s', self.quorum, ipfs_hashes) raise IpfsException('Failed to reach the uploads quorum') return ipfs_hash