mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Change defaults to log only errors
This commit is contained in:
parent
634d6f3898
commit
5ca2cd3a1e
|
@ -79,11 +79,11 @@
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"listen_ip_address": "127.0.0.1",
|
"listen_ip_address": "127.0.0.1",
|
||||||
"listen_port": 8080,
|
"listen_port": 8080,
|
||||||
"verbosity": "info",
|
"verbosity": "error",
|
||||||
"jwt_secret_key": "somethingrandom",
|
"jwt_secret_key": "somethingrandom",
|
||||||
"CORS_origins": [],
|
"CORS_origins": [],
|
||||||
"username": "",
|
"username": "freqtrader",
|
||||||
"password": ""
|
"password": "SuperSecurePassword"
|
||||||
},
|
},
|
||||||
"initial_state": "running",
|
"initial_state": "running",
|
||||||
"forcebuy_enable": false,
|
"forcebuy_enable": false,
|
||||||
|
|
|
@ -84,11 +84,11 @@
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"listen_ip_address": "127.0.0.1",
|
"listen_ip_address": "127.0.0.1",
|
||||||
"listen_port": 8080,
|
"listen_port": 8080,
|
||||||
"verbosity": "info",
|
"verbosity": "error",
|
||||||
"jwt_secret_key": "somethingrandom",
|
"jwt_secret_key": "somethingrandom",
|
||||||
"CORS_origins": [],
|
"CORS_origins": [],
|
||||||
"username": "",
|
"username": "freqtrader",
|
||||||
"password": ""
|
"password": "SuperSecurePassword"
|
||||||
},
|
},
|
||||||
"initial_state": "running",
|
"initial_state": "running",
|
||||||
"forcebuy_enable": false,
|
"forcebuy_enable": false,
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"listen_ip_address": "127.0.0.1",
|
"listen_ip_address": "127.0.0.1",
|
||||||
"listen_port": 8080,
|
"listen_port": 8080,
|
||||||
"verbosity": "info",
|
"verbosity": "error",
|
||||||
"enable_openapi": false,
|
"enable_openapi": false,
|
||||||
"jwt_secret_key": "somethingrandom",
|
"jwt_secret_key": "somethingrandom",
|
||||||
"CORS_origins": [],
|
"CORS_origins": [],
|
||||||
|
|
|
@ -89,11 +89,11 @@
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"listen_ip_address": "127.0.0.1",
|
"listen_ip_address": "127.0.0.1",
|
||||||
"listen_port": 8080,
|
"listen_port": 8080,
|
||||||
"verbosity": "info",
|
"verbosity": "error",
|
||||||
"jwt_secret_key": "somethingrandom",
|
"jwt_secret_key": "somethingrandom",
|
||||||
"CORS_origins": [],
|
"CORS_origins": [],
|
||||||
"username": "",
|
"username": "freqtrader",
|
||||||
"password": ""
|
"password": "SuperSecurePassword"
|
||||||
},
|
},
|
||||||
"initial_state": "running",
|
"initial_state": "running",
|
||||||
"forcebuy_enable": false,
|
"forcebuy_enable": false,
|
||||||
|
|
|
@ -11,7 +11,7 @@ Sample configuration:
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"listen_ip_address": "127.0.0.1",
|
"listen_ip_address": "127.0.0.1",
|
||||||
"listen_port": 8080,
|
"listen_port": 8080,
|
||||||
"verbosity": "info",
|
"verbosity": "error",
|
||||||
"enable_openapi": false,
|
"enable_openapi": false,
|
||||||
"jwt_secret_key": "somethingrandom",
|
"jwt_secret_key": "somethingrandom",
|
||||||
"CORS_origins": [],
|
"CORS_origins": [],
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ApiServer(RPCHandler):
|
||||||
|
|
||||||
self.app = FastAPI(title="Freqtrade API",
|
self.app = FastAPI(title="Freqtrade API",
|
||||||
openapi_url='openapi.json' if api_config.get(
|
openapi_url='openapi.json' if api_config.get(
|
||||||
'enable_openapi') else None,
|
'enable_openapi', False) else None,
|
||||||
redoc_url=None,
|
redoc_url=None,
|
||||||
)
|
)
|
||||||
self.configure_app(self.app, self._config)
|
self.configure_app(self.app, self._config)
|
||||||
|
@ -98,7 +98,7 @@ class ApiServer(RPCHandler):
|
||||||
"Others may be able to log into your bot.")
|
"Others may be able to log into your bot.")
|
||||||
|
|
||||||
logger.info('Starting Local Rest Server.')
|
logger.info('Starting Local Rest Server.')
|
||||||
verbosity = self._config['api_server'].get('verbosity', 'info')
|
verbosity = self._config['api_server'].get('verbosity', 'error')
|
||||||
log_config = uvicorn.config.LOGGING_CONFIG
|
log_config = uvicorn.config.LOGGING_CONFIG
|
||||||
# Change logging of access logs to stderr
|
# Change logging of access logs to stderr
|
||||||
log_config["handlers"]["access"]["stream"] = log_config["handlers"]["default"]["stream"]
|
log_config["handlers"]["access"]["stream"] = log_config["handlers"]["default"]["stream"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user