File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ async def _probe(self) -> results:
2929 results .record_block_height (self .url , chain_info ['headers' ])
3030 results .record_total_difficulty (self .url , chain_info ['difficulty' ])
3131 except Exception as exc :
32- logger .error ("Failed probing {} with error: {}" .format (strip_url (self .url ), exc ))
32+ logger .error ("Failed probing {} with error: {} of type: {} " .format (strip_url (self .url ), exc , type ( exc ) ))
3333 results .record_health (self .url , False )
3434
3535 def probe (self ):
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def probe(self) -> results:
4444 if self .record_difficulty :
4545 results .record_total_difficulty (self .url , self .client .eth .get_block ('latest' )['totalDifficulty' ])
4646 results .record_difficulty (self .url , self .client .eth .get_block ('latest' )['difficulty' ])
47- except ExtraDataLengthError :
47+ except ( ExtraDataLengthError , KeyError ) :
4848 logger .info ("It looks like this is a POA chain, and does not use difficulty anymore. Collector will ignore difficulty metric from this point on." )
4949 self .record_difficulty = False
5050 try :
You can’t perform that action at this time.
0 commit comments