You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the log level for the Ethereum transaction logger to a higher level (e.g., WARNING) to suppress INFO messages
eth_transaction_logger.setLevel(logging.WARNING)
Example usage
def process_ethereum_transaction():
Your transaction processing logic here
Log a transaction message (this will be suppressed if the log level is set to WARNING or higher)
eth_transaction_logger.info('Transaction Sent')
Call your function to process Ethereum transactions
process_ethereum_transaction()
`
When you call the process_ethereum_transaction function, the log message "Transaction Sent" will only be printed if the log level is set to INFO or lower. If you set it to WARNING or higher, the message will be suppressed.
Overview
I would like to turn off the "Transaction Sent" log that gets printed to the console everytime a transaction is processed.
Specification
Ideally, this would be incorporated with the
logging
built-in package, where I can specify a logging level that disables all printing.Dependencies
None
The text was updated successfully, but these errors were encountered: