Author: manik.surtani(a)jboss.com
Date: 2008-02-13 10:49:25 -0500 (Wed, 13 Feb 2008)
New Revision: 5351
Modified:
core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java
core/trunk/src/main/java/org/jboss/cache/Version.java
Log:
Reduced logging
Modified: core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2008-02-13 15:49:12 UTC (rev
5350)
+++ core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2008-02-13 15:49:25 UTC (rev
5351)
@@ -381,10 +381,8 @@
// start all internal components
componentRegistry.start();
- if (log.isInfoEnabled())
- {
- log.info("Interceptor chain is:\n" +
CachePrinter.printInterceptorChain(interceptorChain));
- }
+ if (log.isDebugEnabled())
+ log.debug("Interceptor chain is:\n" +
CachePrinter.printInterceptorChain(interceptorChain));
if (configuration.getNodeLockingScheme() ==
Configuration.NodeLockingScheme.OPTIMISTIC && transactionManager == null)
{
Modified: core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java 2008-02-13 15:49:12 UTC
(rev 5350)
+++ core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java 2008-02-13 15:49:25 UTC
(rev 5351)
@@ -596,7 +596,7 @@
public void viewAccepted(View new_view)
{
Vector<Address> new_mbrs = new_view.getMembers();
- if (log.isInfoEnabled()) log.info("viewAccepted(): " + new_view);
+ if (log.isInfoEnabled()) log.info("Received new cluster view: " +
new_view);
synchronized (members)
{
boolean needNotification = false;
Modified: core/trunk/src/main/java/org/jboss/cache/Version.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/Version.java 2008-02-13 15:49:12 UTC (rev
5350)
+++ core/trunk/src/main/java/org/jboss/cache/Version.java 2008-02-13 15:49:25 UTC (rev
5351)
@@ -13,7 +13,7 @@
{
public static final String version = "2.1.0-SNAPSHOT";
public static final String codename = "Alegrias";
- public static final String cvs = "$Id: Version.java 4592 2007-10-10 16:44:36Z
manik.surtani(a)jboss.com $";
+ //public static final String cvs = "$Id: Version.java 4592 2007-10-10 16:44:36Z
manik.surtani(a)jboss.com $";
static final byte[] version_id = {'0', '2', '1', '0',
'S'};
private static final int MAJOR_SHIFT = 11;
@@ -32,7 +32,7 @@
{
System.out.println("\nVersion: \t" + version);
System.out.println("Codename: \t" + codename);
- System.out.println("CVS: \t" + cvs);
+ //System.out.println("CVS: \t" + cvs);
System.out.println("History: \t(see
http://jira.jboss.com/jira/browse/JBCACHE
for details)\n");
}
@@ -41,7 +41,7 @@
*/
public static String printVersion()
{
- return "JBossCache '" + codename + "' " + version +
"[ " + cvs + "]";
+ return "JBossCache '" + codename + "' " + version;// +
"[ " + cvs + "]";
}
public static String printVersionId(byte[] v, int len)
@@ -135,8 +135,8 @@
public static short encodeVersion(int major, int minor, int patch)
{
short version = (short) ((major << MAJOR_SHIFT)
- + (minor << MINOR_SHIFT)
- + patch);
+ + (minor << MINOR_SHIFT)
+ + patch);
return version;
}
@@ -163,7 +163,7 @@
{
System.out.println("\nVersion: \t" + version + " (Retroweaved for
JDK 1.4.x compatibility)");
System.out.println("Codename: \t" + codename);
- System.out.println("CVS: \t" + cvs);
+ //System.out.println("CVS: \t" + cvs);
System.out.println("History: \t(see
http://jira.jboss.com/jira/browse/JBCACHE for details)\n");
}
}