activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1051521 - in /activemq/trunk: activemq-core/src/main/java/org/apache/activemq/broker/jmx/AnnotatedMBean.java assembly/src/release/conf/log4j.properties
Date Tue, 21 Dec 2010 15:13:35 GMT
Author: dejanb
Date: Tue Dec 21 15:13:33 2010
New Revision: 1051521

URL: http://svn.apache.org/viewvc?rev=1051521&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3100 - JMX audit improvement

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/AnnotatedMBean.java
    activemq/trunk/assembly/src/release/conf/log4j.properties

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/AnnotatedMBean.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/AnnotatedMBean.java?rev=1051521&r1=1051520&r2=1051521&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/AnnotatedMBean.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/AnnotatedMBean.java
Tue Dec 21 15:13:33 2010
@@ -169,10 +169,10 @@ public class AnnotatedMBean extends Stan
             if (subject != null) {
                 caller = "";
                 for (Principal principal : subject.getPrincipals()) {
-                    caller += principal + " ";
+                    caller += principal.getName() + " ";
                 }
             }
-            LOG.info(caller + " called " + this.getMBeanInfo().getClassName() + "." + s 
+ Arrays.toString(objects) + "");
+            LOG.info(caller.trim() + " called " + this.getMBeanInfo().getClassName() + "."
+ s  + Arrays.toString(objects) + "");
         }
         return super.invoke(s, objects, strings);
     }

Modified: activemq/trunk/assembly/src/release/conf/log4j.properties
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/conf/log4j.properties?rev=1051521&r1=1051520&r2=1051521&view=diff
==============================================================================
--- activemq/trunk/assembly/src/release/conf/log4j.properties (original)
+++ activemq/trunk/assembly/src/release/conf/log4j.properties Tue Dec 21 15:13:33 2010
@@ -63,4 +63,4 @@ log4j.appender.audit.maxFileSize=1024KB
 log4j.appender.audit.maxBackupIndex=5
 log4j.appender.audit.append=true
 log4j.appender.audit.layout=org.apache.log4j.PatternLayout
-log4j.appender.audit.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n
\ No newline at end of file
+log4j.appender.audit.layout.ConversionPattern=%d | %-5p | %m | %t%n
\ No newline at end of file



Mime
View raw message