mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
Reduce log level in rpc default handler
This avoids additional "NoneType: None" lines when RPC triggers exceptions
This commit is contained in:
@@ -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}"}
|
||||
|
||||
Reference in New Issue
Block a user