From 6327af7e119ce3cf88d23a4d86318839ef9adfad Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Sun, 19 Nov 2023 19:06:13 -0500 Subject: [PATCH] chore: cleanup logs on opti tenderly (#112) --- dank_mids/requests.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dank_mids/requests.py b/dank_mids/requests.py index dc33903c..037c2a3c 100644 --- a/dank_mids/requests.py +++ b/dank_mids/requests.py @@ -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