Explorar el Código

Logs exception as severe on asset locator instantiation failure (#2232)

switched to severe logging
codex hace 1 año
padre
commit
ec7f6e1f33
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      jme3-core/src/main/java/com/jme3/asset/ImplHandler.java

+ 1 - 4
jme3-core/src/main/java/com/jme3/asset/ImplHandler.java

@@ -124,10 +124,7 @@ final class ImplHandler {
             } catch (InstantiationException | IllegalAccessException
                     | IllegalArgumentException | InvocationTargetException
                     | NoSuchMethodException | SecurityException ex) {
-                logger.log(Level.SEVERE, "Cannot create locator of type {0}, does"
-                        + " the class have an empty and publicly accessible"
-                        + " constructor?", type.getName());
-                logger.throwing(type.getName(), "<init>", ex);
+                logger.log(Level.SEVERE, "An exception occurred while instantiating asset locator: " + type.getName(), ex);
             }
             return null;
         }