Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B83F4654 for ; Mon, 6 Jun 2011 21:23:29 +0000 (UTC) Received: (qmail 14035 invoked by uid 500); 6 Jun 2011 21:23:29 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 14008 invoked by uid 500); 6 Jun 2011 21:23:28 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 14001 invoked by uid 99); 6 Jun 2011 21:23:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 21:23:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 21:23:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E257823888DD; Mon, 6 Jun 2011 21:23:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110606212305.E257823888DD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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(MapoverrideFields) { - return IntrospectionSupport.toString(this, BaseCommand.class, overrideFields); + return IntrospectionSupport.simpleName(this.getClass()) + " " + + IntrospectionSupport.toString(this, BaseCommand.class, overrideFields); } public boolean isWireFormatInfo() {