Reduce log level in rpc default handler

This avoids additional "NoneType: None" lines when RPC triggers
exceptions
This commit is contained in:
Matthias
2024-01-09 06:39:11 +01:00
parent 6a5847a157
commit 225c94c0f5

View File

@@ -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}"}