Skip to content

Commit

Permalink
chore: more logs cleanup (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 2, 2023
1 parent 5101b76 commit e592126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dank_mids/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import multicall
from multicall.constants import Network

TOO_MUCH_DATA_ERRS = ["Payload Too Large", "content length too large", "request entity too large"]
RETRY_ERRS = ["connection reset by peer", "server disconnected", "execution aborted (timeout = 5s)"]
TOO_MUCH_DATA_ERRS = ["Payload Too Large", "content length too large", "request entity too large", "batch limit exceeded"]
RETRY_ERRS = ["connection reset by peer", "server disconnected", "execution aborted (timeout = 5s)", "batch limit exceeded"]

GAS_LIMIT = multicall.constants.GAS_LIMIT
MULTICALL2_OVERRIDE_CODE = multicall.constants.MULTICALL2_BYTECODE
Expand Down
2 changes: 1 addition & 1 deletion dank_mids/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ def _post_future_cleanup(self) -> None:
def _log_exception(e: Exception) -> None:
# NOTE: These errors are expected during normal use and are not indicative of any problem(s). No need to log them.
# TODO: Better filter what we choose to log here
dont_need_to_see_errs = constants.RETRY_ERRS + ['out of gas', 'non_empty_data', 'exceeding --rpc.returndata.limit', "'code': 429"]
dont_need_to_see_errs = constants.RETRY_ERRS + ['out of gas', 'non_empty_data', 'exceeding --rpc.returndata.limit', "'code': 429", 'payload too large']
# We catch and correct these
dont_need_to_see_errs += ["invalid request"]
# We pass these down to the call they originated from
Expand Down

0 comments on commit e592126

Please sign in to comment.