Related to issue 19778.Use own class log4j logger.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Wed, 29 Feb 2012 13:48:46 +0100
changeset 15664 0fce8d2edeac
parent 15663 a253469978c4
child 15665 cfc4e257dc4a
Related to issue 19778.Use own class log4j logger.
src/org/openbravo/erpCommon/utility/OBMessageUtils.java
--- a/src/org/openbravo/erpCommon/utility/OBMessageUtils.java	Wed Feb 29 13:38:49 2012 +0100
+++ b/src/org/openbravo/erpCommon/utility/OBMessageUtils.java	Wed Feb 29 13:48:46 2012 +0100
@@ -469,7 +469,7 @@
   public static String getI18NMessage(String key, String[] params) {
     OBContext.setAdminMode();
     try {
-  
+
       // first read the labels from the base table
       final OBQuery<Message> messages = OBDal.getInstance().createQuery(Message.class,
           Message.PROPERTY_SEARCHKEY + "=:key");
@@ -477,11 +477,11 @@
       if (messages.list().isEmpty()) {
         return null;
       }
-  
+
       if (messages.list().size() > 1) {
-        Utility.log4j.warn("More than one message found using key " + key);
+        log4j.warn("More than one message found using key " + key);
       }
-  
+
       // pick the first one
       final Message message = messages.list().get(0);
       String label = message.getMessageText();