CLOUDSTACK-505: Do not log the command response object for the createSSHKeyPair command.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
This commit is contained in:
Chip Childers 2012-11-29 12:24:42 -05:00
parent 46b16e5917
commit e4a5173199

View File

@ -586,7 +586,11 @@ public class ApiServer implements HttpRequestHandler {
return;
}
auditTrailSb.append(" " + HttpServletResponse.SC_OK + " ");
auditTrailSb.append(result);
if (command.equals("createSSHKeyPair")){
auditTrailSb.append("This result was not logged because it contains sensitive data.");
} else {
auditTrailSb.append(result);
}
/*
* if (command.equals("queryAsyncJobResult")){ //For this command we need to also log job status and job
* resultcode for