diff --git a/pyproject.toml b/pyproject.toml index 760c014..4b38c4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sw-utils" -version = "0.3.25" +version = "0.3.26" description = "StakeWise Python utils" authors = ["StakeWise Labs "] license = "GPL-3.0-or-later" diff --git a/sw_utils/ipfs.py b/sw_utils/ipfs.py index 6820e15..3ddf26b 100644 --- a/sw_utils/ipfs.py +++ b/sw_utils/ipfs.py @@ -224,6 +224,9 @@ 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, ', '.join(ipfs_hashes.keys()) + ) raise IpfsException('Failed to reach the uploads quorum') return ipfs_hash