activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1132780 - /activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/command/BaseCommand.java
Date Mon, 06 Jun 2011 21:23:05 GMT
Author: tabish
Date: Mon Jun  6 21:23:05 2011
New Revision: 1132780

URL: http://svn.apache.org/viewvc?rev=1132780&view=rev
Log:
https://issues.apache.org/jira/browse/APLO-30

Use the Introspection support simpleName method to add the Class name to logging output.

Modified:
    activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/command/BaseCommand.java

Modified: activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/command/BaseCommand.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/command/BaseCommand.java?rev=1132780&r1=1132779&r2=1132780&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/command/BaseCommand.java
(original)
+++ activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/command/BaseCommand.java
Mon Jun  6 21:23:05 2011
@@ -66,7 +66,8 @@ public abstract class BaseCommand implem
     }
     
     public String toString(Map<String, Object>overrideFields) {
-    	return IntrospectionSupport.toString(this, BaseCommand.class, overrideFields);
+    	return IntrospectionSupport.simpleName(this.getClass()) + " " +
+               IntrospectionSupport.toString(this, BaseCommand.class, overrideFields);
     }
     
     public boolean isWireFormatInfo() {



Mime
View raw message