ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: add logging
Date Tue, 24 Mar 2015 15:00:15 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-tc-jclient b11bd79c3 -> 78661120b


add logging


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/78661120
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/78661120
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/78661120

Branch: refs/heads/ignite-tc-jclient
Commit: 78661120b89550f786c27f01c970db002b5b89fd
Parents: b11bd79
Author: Artem Shutak <ashutak@gridgain.com>
Authored: Tue Mar 24 18:00:30 2015 +0300
Committer: Artem Shutak <ashutak@gridgain.com>
Committed: Tue Mar 24 18:00:30 2015 +0300

----------------------------------------------------------------------
 .../JettyRestProcessorAbstractSelfTest.java     | 21 +++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/78661120/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
index 1228586..c8f0ee5 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
@@ -66,28 +66,47 @@ abstract class JettyRestProcessorAbstractSelfTest extends AbstractRestProcessorS
      * @throws Exception If failed.
      */
     private String content(Map<String, String> params) throws Exception {
+        log.info("Inside content 1");
+
         String addr = "http://" + LOC_HOST + ":" + restPort() + "/ignite?";
 
         for (Map.Entry<String, String> e : params.entrySet())
             addr += e.getKey() + '=' + e.getValue() + '&';
 
         URL url = new URL(addr);
+        
+        log.info("Inside content 2");
 
         URLConnection conn = url.openConnection();
+        
+        log.info("Inside content 3");
 
         String signature = signature();
+        
+        log.info("Inside content 4");
 
-        if (signature != null)
+        if (signature != null) {
             conn.setRequestProperty("X-Signature", signature);
+        }
+
+        log.info("Inside content 5");
 
         InputStream in = conn.getInputStream();
+        
+        log.info("Inside content 6");
 
         LineNumberReader rdr = new LineNumberReader(new InputStreamReader(in));
+        
+        log.info("Inside content 7");
 
         StringBuilder buf = new StringBuilder(256);
+        
+        log.info("Inside content 8");
 
         for (String line = rdr.readLine(); line != null; line = rdr.readLine())
             buf.append(line);
+        
+        log.info("Inside content 9");
 
         return buf.toString();
     }


Mime
View raw message