git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1051521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-12-21 15:13:33 +00:00
parent 2306d96241
commit 7267896d56
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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