Skip to content

Commit

Permalink
chore: cleanup logs on opti tenderly (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 20, 2023
1 parent 4ce8d19 commit 6327af7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dank_mids/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,11 @@ 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','error processing call revert', 'non_empty_data', 'invalid ether transfer', 'exceeding --rpc.returndata.limit', 'invalid opcode', "'code': 429"]
dont_need_to_see_errs += ["invalid request"] # We catch and correct these
dont_need_to_see_errs = constants.RETRY_ERRS + ['out of gas', 'non_empty_data', 'exceeding --rpc.returndata.limit', "'code': 429"]
# We catch and correct these
dont_need_to_see_errs += ["invalid request"]
# We pass these down to the call they originated from
dont_need_to_see_errs += ["invalid ether transfer", "error processing call revert", "invalid opcode", "resource not found"]
stre = str(e).lower()
if any(err in stre for err in dont_need_to_see_errs):
return
Expand Down

0 comments on commit 6327af7

Please sign in to comment.