Skip to content

Commit

Permalink
Suppress error logs raised by web3 module
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesmoke05 committed Jun 24, 2024
1 parent 067ca35 commit c2b361b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
ACCESS_LOG = logging.getLogger("issuer_api_access")
ACCESS_LOG.propagate = False

logging.getLogger("web3.manager.RequestManager").propagate = False
logging.getLogger("web3.manager.RequestManager").addHandler(logging.NullHandler())

INFO_FORMAT = "[%(asctime)s] {}[%(process)d] [%(levelname)s] %(message)s"
DEBUG_FORMAT = "[%(asctime)s] {}[%(process)d] [%(levelname)s] %(message)s [in %(pathname)s:%(lineno)d]"
TIMESTAMP_FORMAT = "%Y-%m-%d %H:%M:%S %z"
Expand Down

0 comments on commit c2b361b

Please sign in to comment.