related to issue 32870: code review improvements
authorCarlos Aristu <carlos.aristu@openbravo.com>
Fri, 06 May 2016 09:38:49 +0200
changeset 29438 14e14d88f186
parent 29437 98d966006ddb
child 29449 58bacde3f953
related to issue 32870: code review improvements
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
--- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Wed May 04 13:23:26 2016 +0200
+++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Fri May 06 09:38:49 2016 +0200
@@ -440,8 +440,8 @@
           bdError(request, response, "AccessTableNoView", vars1.getLanguage());
         }
         String roleStr = "".equals(vars1.getRole()) ? "" : " (" + vars1.getRole() + ")";
-        log4j.error("With your current role" + roleStr
-            + " and settings, you cannot view this information.");
+        log4j
+            .warn("Role" + roleStr + " tried to access ungranted resource with ID " + classInfo.id);
       }
     } catch (final ServletException ex) {
       log4j.error("Error captured: ", ex);