Skip to content

Commit

Permalink
Change log level to debug in eth_token_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
medvedev1088 committed Aug 8, 2021
1 parent 1a8ac06 commit 55a9371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ethereumetl/service/eth_token_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _bytes_to_string(self, b, ignore_errors=True):
b = b.decode('utf-8')
except UnicodeDecodeError as e:
if ignore_errors:
logger.exception('A UnicodeDecodeError exception occurred while trying to decode bytes to string')
logger.debug('A UnicodeDecodeError exception occurred while trying to decode bytes to string', exc_info=True)
b = None
else:
raise e
Expand All @@ -114,8 +114,8 @@ def call_contract_function(func, ignore_errors, default_value=None):
return result
except Exception as ex:
if type(ex) in ignore_errors:
logger.exception('An exception occurred in function {} of contract {}. '.format(func.fn_name, func.address)
+ 'This exception can be safely ignored.')
logger.debug('An exception occurred in function {} of contract {}. '.format(func.fn_name, func.address)
+ 'This exception can be safely ignored.', exc_info=True)
return default_value
else:
raise ex

0 comments on commit 55a9371

Please sign in to comment.