You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/10/01 13:08:29 UTC

[GitHub] [ignite] nizhikov commented on a change in pull request #6928: IGNITE-12250 Adds rest requests processing logging.

nizhikov commented on a change in pull request #6928: IGNITE-12250 Adds rest requests processing logging.
URL: https://github.com/apache/ignite/pull/6928#discussion_r330046163
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestProcessor.java
 ##########
 @@ -150,7 +150,11 @@
         }
 
         @Override public IgniteInternalFuture<GridRestResponse> handleAsync(GridRestRequest req) {
-            return handleAsync0(req);
+            IgniteInternalFuture<GridRestResponse> res = handleAsync0(req);
+
+            res.listen(fut -> logRestRequestResult(req, fut));
 
 Review comment:
   Can we use closure here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services