neth        01/10/11 05:03:49

  Modified:    src/org/apache/jmeter/protocol/http/sampler HTTPSampler.java
  Log:
  Added some log4j statements for debug
  
  Revision  Changes    Path
  1.29      +8 -2      
jakarta-jmeter/src/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
  
  Index: HTTPSampler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- HTTPSampler.java  2001/10/05 19:57:12     1.28
  +++ HTTPSampler.java  2001/10/11 12:03:48     1.29
  @@ -75,8 +75,8 @@
    *  HTTP requests, including cookies and authentication.
    *
    *@author     Michael Stover
  - *@created    $Date: 2001/10/05 19:57:12 $
  - *@version    $Revision: 1.28 $
  + *@created    $Date: 2001/10/11 12:03:48 $
  + *@version    $Revision: 1.29 $
    */
   public class HTTPSampler implements Sampler
   {
  @@ -345,6 +345,10 @@
                        res.setTime(System.currentTimeMillis() - time);
                        res.putValue(SampleResult.SUCCESS, new Boolean(false));
                }
  +             if(catClass.isDebugEnabled())
  +             {
  +                     catClass.debug("getErrorLevel : Returning errorLevel - " + 
errorLevel);
  +             }
                return errorLevel;
        }
   
  @@ -405,6 +409,7 @@
                {
                        u = url.getUrl();
                        res.putValue(SampleResult.SAMPLE_LABEL, u.toString());
  +                     res.putValue(SampleResult.DISPLAY_NAME, u.toString());
                        res.putValue(HTTPSampler.URL,u);
                        // specify the data to the result.
                        res.putValue(HttpSampleResult.DATA, url);
  @@ -443,6 +448,7 @@
                                throw new IOException();
                        }
                        res.setTime(time);
  +                     catClass.debug("End : sample2");
                        return res;
                }
                catch (IOException ex)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to