axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/handlers LogMessage.java
Date Fri, 07 Sep 2001 18:59:29 GMT
rubys       01/09/07 11:59:29

  Modified:    java/samples/transport/tcp TCPSender.java
               java/src/org/apache/axis/handlers LogMessage.java
  Log:
  Successful function tests should not contain the string "FATAL" in their
  output anyplace, IMHO.
  
  Revision  Changes    Path
  1.7       +2 -2      xml-axis/java/samples/transport/tcp/TCPSender.java
  
  Index: TCPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/transport/tcp/TCPSender.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TCPSender.java	2001/09/05 17:22:58	1.6
  +++ TCPSender.java	2001/09/07 18:59:29	1.7
  @@ -82,7 +82,7 @@
               Category.getInstance(TCPSender.class.getName());
   
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        category.fatal( "Enter: TCPSender::invoke" );
  +        category.info( "Enter: TCPSender::invoke" );
   
           /* Find the service we're invoking so we can grab it's options */
           /***************************************************************/
  @@ -145,7 +145,7 @@
               if ( !(e instanceof AxisFault) ) e = new AxisFault(e);
               throw (AxisFault) e ;
           }
  -        category.fatal( "Exit: TCPSender::invoke" );
  +        category.info( "Exit: TCPSender::invoke" );
       }
   
       public void undo(MessageContext msgContext) {
  
  
  
  1.5       +6 -1      xml-axis/java/src/org/apache/axis/handlers/LogMessage.java
  
  Index: LogMessage.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/LogMessage.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LogMessage.java	2001/09/05 17:22:59	1.4
  +++ LogMessage.java	2001/09/07 18:59:29	1.5
  @@ -69,11 +69,16 @@
       static Category category =
               Category.getInstance(LogMessage.class.getName());
   
  +    static {
  +        category.setPriority(Priority.INFO);
  +    }
  +
  +
       public void invoke(MessageContext context)
       {
           String msg = (String)getOption("message");
           if (msg != null)
  -            category.log(Priority.FATAL, msg);  // ??? Better way to do this?
  +            category.log(Priority.INFO, msg);
       }
   
       public void undo(MessageContext msgContext) {
  
  
  

Mime
View raw message