From 225c94c0f5a65314ca0fd013f705b1485feddd68 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 9 Jan 2024 06:39:11 +0100 Subject: [PATCH] Reduce log level in rpc default handler This avoids additional "NoneType: None" lines when RPC triggers exceptions --- freqtrade/rpc/api_server/webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/rpc/api_server/webserver.py b/freqtrade/rpc/api_server/webserver.py index 44c1aa3d9..c28d6da6c 100644 --- a/freqtrade/rpc/api_server/webserver.py +++ b/freqtrade/rpc/api_server/webserver.py @@ -107,7 +107,7 @@ class ApiServer(RPCHandler): ApiServer._message_stream.publish(msg) def handle_rpc_exception(self, request, exc): - logger.exception(f"API Error calling: {exc}") + logger.error(f"API Error calling: {exc}") return JSONResponse( status_code=502, content={'error': f"Error querying {request.url.path}: {exc.message}"}