Commit 447cc5b7 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Couple of minor tweaks to audit logs passed to Clearspace.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9961 b35dd754-fafc-0310-a699-88a17e54d16e
parent 81117734
...@@ -59,12 +59,18 @@ public class ClearspaceSecurityAuditProvider implements SecurityAuditProvider { ...@@ -59,12 +59,18 @@ public class ClearspaceSecurityAuditProvider implements SecurityAuditProvider {
userE.addText(username); userE.addText(username);
Element descE = rootE.addElement("description"); Element descE = rootE.addElement("description");
if (summary != null) { if (summary != null) {
descE.addText(summary); descE.addText("[Openfire] "+summary);
}
else {
descE.addText("[Openfire] No summary provided.");
} }
Element detlE = rootE.addElement("details"); Element detlE = rootE.addElement("details");
if (details != null) { if (details != null) {
detlE.addText(details); detlE.addText(details);
} }
else {
detlE.addText("No details provided.");
}
manager.executeRequest(POST, path, auditDoc.asXML()); manager.executeRequest(POST, path, auditDoc.asXML());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment