@@ -228,7 +228,7 @@ def etherscan( chain, params, headers=None, apikey=None, timeout=None, verify=Tr
228228 return response_json ['result' ]
229229
230230
231- @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .WARNING , exc_at = logging .WARNING , default_cls = dict )
231+ @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .INFO , exc_at = logging .WARNING , default_cls = dict )
232232def gasoracle ( chain = None , ** kwds ):
233233 """Return (possibly cached) Gas Oracle values from etherscan.io, or empty dict, allowing retries w/
234234 up to 3*1.5^5 seconds (22s) exponential backoff.
@@ -244,7 +244,7 @@ def gasoracle( chain=None, **kwds ):
244244 )
245245
246246
247- @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .WARNING , exc_at = logging .WARNING , default_cls = dict )
247+ @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .INFO , exc_at = logging .WARNING , default_cls = dict )
248248def ethprice ( chain = None , ** kwds ):
249249 """Return (possibly cached) Ethereum price in $USD from etherscan.io, or empty dict (performs exponential
250250 backoff of 3*1.5^5 seconds (22s) on Exceptions.)
@@ -260,7 +260,7 @@ def ethprice( chain=None, **kwds ):
260260 )
261261
262262
263- @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .WARNING , exc_at = logging .WARNING , default_cls = dict )
263+ @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .INFO , exc_at = logging .WARNING , default_cls = dict )
264264def erc20tx ( chain = None , address = None , token = None , ** kwds ):
265265 """Return (possibly cached) ERC-20 transactions from etherscan.io, or empty dict (performs exponential
266266 backoff of 3*1.5^5 seconds (22s) on Exceptions.)
@@ -293,7 +293,7 @@ def erc20tx( chain=None, address=None, token=None, **kwds ):
293293 )
294294
295295
296- @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .WARNING , exc_at = logging .WARNING , default_cls = dict )
296+ @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .INFO , exc_at = logging .WARNING , default_cls = dict )
297297def etherbalance ( chain = None , address = None , ** kwds ):
298298 """Return (possibly cached) ETH balance from etherscan.io, or empty dict (performs exponential
299299 backoff of 3^5 seconds (4 min.) on Exceptions.)
@@ -315,7 +315,7 @@ def etherbalance( chain=None, address=None, **kwds ):
315315 )
316316
317317
318- @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .WARNING , exc_at = logging .WARNING , default_cls = dict )
318+ @retry ( tries = 5 , delay = 3 , backoff = 1.5 , log_at = logging .INFO , exc_at = logging .WARNING , default_cls = dict )
319319def ethertx ( chain = None , address = None , ** kwds ):
320320 """Return (possibly cached) ETH normal transactions from etherscan.io, or empty dict (performs exponential
321321 backoff of 3^5 seconds (4 min.) on Exceptions.)
@@ -355,7 +355,7 @@ def etherio( chain=None, address=None, direction=None, **kwds ):
355355 """
356356 if direction is None :
357357 direction = Direction .Incoming
358- for tx in ethertx ( chain = chain , address = address ):
358+ for tx in ethertx ( chain = chain , address = address , ** kwds ):
359359 if tx ["value" ] == "0" or tx ["isError" ] != "0" :
360360 continue
361361 # A non-error value-bearing transaction. Ignore?
@@ -830,7 +830,7 @@ def _call( self, name, *args, gas=None, **kwds ):
830830 success = False
831831 raise
832832 finally :
833- log .warning ( f"Called { self ._name } .{ name } ( { commas ( args )} ) -{ '-' if success else 'x' } > { result } " )
833+ log .info ( f"Called { self ._name } .{ name } ( { commas ( args )} ) -{ '-' if success else 'x' } > { result } " )
834834 return result
835835
836836 def __getattr__ ( self , name ):
@@ -993,7 +993,7 @@ def _deploy( self, *args, gas=None, **kwds ):
993993 beg = timer ()
994994 while ( block_number := self ._w3 .eth .block_number ) < cons_receipt .blockNumber :
995995 time .sleep ( 1 )
996- log .warning ( f"Waited { timer ()- beg :.2f} s for block { block_number } to be mined, vs. Contract block: { cons_receipt .blockNumber } " )
996+ log .info ( f"Waited { timer ()- beg :.2f} s for block { block_number } to be mined, vs. Contract block: { cons_receipt .blockNumber } " )
997997
998998 self ._update ()
999999
0 commit comments