mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3100 - JMX audit improvement
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1051521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2306d96241
commit
7267896d56
|
@ -169,10 +169,10 @@ public class AnnotatedMBean extends StandardMBean {
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
log4j.appender.audit.layout.ConversionPattern=%d | %-5p | %m | %t%n
|
Loading…
Reference in New Issue