mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
chore: clean up log-levels
This commit is contained in:
@@ -67,21 +67,10 @@ FT_LOGGING_CONFIG = {
|
|||||||
"console": {
|
"console": {
|
||||||
"class": "freqtrade.loggers.ft_rich_handler.FtRichHandler",
|
"class": "freqtrade.loggers.ft_rich_handler.FtRichHandler",
|
||||||
"formatter": "basic",
|
"formatter": "basic",
|
||||||
# "class": "logging.StreamHandler",
|
|
||||||
# "formatter": "standard",
|
|
||||||
# "stream": "ext://sys.stdout",
|
|
||||||
},
|
},
|
||||||
# "file": {
|
|
||||||
# "class": "logging.handlers.RotatingFileHandler",
|
|
||||||
# "formatter": "standard",
|
|
||||||
# "filename": "whatever.log",
|
|
||||||
# "maxBytes": 1024 * 1024 * 10, # 10Mb
|
|
||||||
# "backupCount": 10,
|
|
||||||
# },
|
|
||||||
},
|
},
|
||||||
"loggers": {
|
"loggers": {
|
||||||
"freqtrade": {
|
"freqtrade": {
|
||||||
# "handlers": ["console", "file"],
|
|
||||||
"level": "INFO",
|
"level": "INFO",
|
||||||
"propagate": True,
|
"propagate": True,
|
||||||
},
|
},
|
||||||
@@ -186,7 +175,7 @@ def setup_logging(config: Config) -> None:
|
|||||||
verbosity = config["verbosity"]
|
verbosity = config["verbosity"]
|
||||||
|
|
||||||
log_config = _create_log_config(config)
|
log_config = _create_log_config(config)
|
||||||
|
print(log_config)
|
||||||
logging.config.dictConfig(log_config)
|
logging.config.dictConfig(log_config)
|
||||||
|
|
||||||
# Add buffer handler to root logger
|
# Add buffer handler to root logger
|
||||||
|
|||||||
Reference in New Issue
Block a user