You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2003/06/07 05:03:07 UTC
cvs commit: jakarta-james/src/java/org/apache/james/util NetMatcher.java
noel 2003/06/06 20:03:07
Modified: src/java/org/apache/james/util Tag: branch_2_1_fcs
NetMatcher.java
Log:
Added some internal logging back into NetMatcher. Defaults to not logging.
Revision Changes Path
No revision
No revision
1.1.2.5 +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.1.2.4
retrieving revision 1.1.2.5
diff -u -r1.1.2.4 -r1.1.2.5
--- NetMatcher.java 26 May 2003 22:32:52 -0000 1.1.2.4
+++ NetMatcher.java 7 Jun 2003 03:03:07 -0000 1.1.2.5
@@ -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