blockchain-etl / ethereum-etl

Python scripts for ETL (extract, transform and load) jobs for Ethereum blocks, transactions, ERC20 / ERC721 tokens, transfers, receipts, logs, contracts, internal transactions. Data is available in Google BigQuery https://goo.gl/oY5BCQ
https://t.me/BlockchainETL
MIT License
2.87k stars 812 forks source link

Allow changing the log level #402

Open SebastienGllmt opened 1 year ago

SebastienGllmt commented 1 year ago

Currently, the log level is fixed to INFO in https://github.com/blockchain-etl/ethereum-etl/blob/develop/blockchainetl/logging_utils.py

This causes a huge amount of text to be logged to the console (esp. if used with ethereum-etl-postgres which logs every single SQL query) which, in turn, slows down the syncing

It would be nice if there was a way to change the log level through a command-line argument or ENV variable