From 1a1f038afaa41be0744147d02db592149fd9d985 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 28 Feb 2011 17:58:14 -0800 Subject: [PATCH] Added better logging when an account attempts to access a command it does not have priviledges for. --- server/src/com/cloud/api/ApiServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/com/cloud/api/ApiServer.java b/server/src/com/cloud/api/ApiServer.java index 47e8778543a..03cea698c21 100644 --- a/server/src/com/cloud/api/ApiServer.java +++ b/server/src/com/cloud/api/ApiServer.java @@ -336,6 +336,7 @@ public class ApiServer implements HttpRequestHandler { short accountType = userAccount.getType(); if (!isCommandAvailable(accountType, commandName)) { + s_logger.info("Account does not have the required priviledges to execute the command: " + commandName); return false; } return true; @@ -408,6 +409,7 @@ public class ApiServer implements HttpRequestHandler { } if (!isCommandAvailable(account.getType(), commandName)) { + s_logger.info("Account does not have the required priviledges to execute the command: " + commandName); return false; }