import os
from logging.config import dictConfig
log_level = os.getenv('LOG_LEVEL')
log_config = {
'version': 1,
'loggers': {
'': {
'handlers': ['console'],
'level': log_level if log_level is not None else 'INFO'
},
},
'handlers': {
'console': {
'formatter': 'stderr',
'class': 'logging.StreamHandler',
'stream': 'ext://sys.stdout'
}
},
'formatters': {
'stderr': {
'format': '[%(levelname)s|%(asctime)s] %(message)s',
'datefmt': '%m-%d-%Y %I:%M:%S'
}
},
}
dictConfig(log_config)
-
Matthew Slipper authored
* ops: Add bedrock-devnet script Adds a bedrock-devnet script that deploys a local network using the Hardhat deploy scripts. I opted to write this in Python rather than Bash because we're starting to add complexity to our devnet setup, and I find Python much easier and safer to maintain. Over time, I'll migrate the other devnet-up script to use this Python script as well. To invoke this script, run `make devnet-up-deploy`. It's included in CI already as a separate testing job. * review updates * Revert "review updates" This reverts commit d01ba16b971294b44c5bfbc3124354be30477daf.
896b5d52