From b2d106ca838918c475b0c3e053229ecddcb33097 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Thu, 3 Aug 2023 18:07:41 -0400 Subject: [PATCH] chore: add detail to batch size logs (#80) --- dank_mids/requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dank_mids/requests.py b/dank_mids/requests.py index d89f6e06..291aac93 100644 --- a/dank_mids/requests.py +++ b/dank_mids/requests.py @@ -730,10 +730,10 @@ async def bisect_and_retry(self, e: Exception) -> None: def adjust_batch_size(self) -> None: if self.is_multicalls_only: - logger.info('checking if we should reduce multicall batch size...') + logger.info('checking if we should reduce multicall batch size... (%s calls)', self.total_calls) self.controller.reduce_multicall_size(self.total_calls) else: - logger.info('checking if we should reduce json batch size...') + logger.info('checking if we should reduce json batch size... (%s requests)', len(self)) self.controller.reduce_batch_size(len(self)) stats.logger.devhint( "We still need some better logic for catching these errors and using them to better optimize the batching process"