james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/util NetMatcher.java
Date Sat, 07 Jun 2003 03:05:41 GMT
noel        2003/06/06 20:05:41

  Modified:    src/java/org/apache/james/util NetMatcher.java
  Log:
  Added some internal logging back into NetMatcher.  Defaults to not logging.
  
  Revision  Changes    Path
  1.3       +5 -0      jakarta-james/src/java/org/apache/james/util/NetMatcher.java
  
  Index: NetMatcher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/util/NetMatcher.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NetMatcher.java	27 May 2003 08:47:30 -0000	1.2
  +++ NetMatcher.java	7 Jun 2003 03:05:41 -0000	1.3
  @@ -77,6 +77,7 @@
           }
           catch (java.net.UnknownHostException uhe)
           {
  +            log("Cannot resolve address: " + uhe.getMessage());
           }
           networks.trimToSize();
       }
  @@ -91,6 +92,7 @@
           }
           catch (java.net.UnknownHostException uhe)
           {
  +            log("Cannot resolve address: " + uhe.getMessage());
           }
           networks.trimToSize();
       }
  @@ -105,6 +107,7 @@
           }
           catch (java.net.UnknownHostException uhe)
           {
  +            log("Cannot resolve address: " + uhe.getMessage());
           }
   
           boolean sameNet = false;
  @@ -146,6 +149,8 @@
       public String toString() {
           return networks.toString();
       }
  +
  +    protected void log(String s) { }
   }
   
   class InetNetwork
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message