From b83b356f672c60de59921de45bd1d7418c66f7e8 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 29 Apr 2019 12:47:35 +0200 Subject: [PATCH] Add a warning message in JsonRpcServer when a call times out --- libnymea-core/jsonrpc/jsonrpcserver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libnymea-core/jsonrpc/jsonrpcserver.cpp b/libnymea-core/jsonrpc/jsonrpcserver.cpp index 9625153b..7b4db2b3 100644 --- a/libnymea-core/jsonrpc/jsonrpcserver.cpp +++ b/libnymea-core/jsonrpc/jsonrpcserver.cpp @@ -707,6 +707,7 @@ void JsonRPCServer::asyncReplyFinished() ,"validating return value", formatAssertion(reply->handler()->name(), reply->method(), QMetaMethod::Method, reply->handler(), reply->data()).toLatin1().data()); sendResponse(interface, reply->clientId(), reply->commandId(), reply->data()); } else { + qCWarning(dcJsonRpc()) << "RPC call timed out:" << reply->handler()->name() << ":" << reply->method(); sendErrorResponse(interface, reply->clientId(), reply->commandId(), "Command timed out"); }