put ORM initialisation log messages in debug level

This commit is contained in:
Marc Baloup 2019-11-07 15:48:43 +01:00
parent d99c64721c
commit 49f5c57696

View File

@ -42,11 +42,11 @@ public final class ORM {
if (tables.contains(elemClass)) return;
try {
tables.add(elemClass);
Log.info("[ORM] Start Init SQL table "+elemClass.getSimpleName());
Log.debug("[ORM] Start Init SQL table "+elemClass.getSimpleName());
E instance = elemClass.newInstance();
String tableName = instance.tableName();
if (!tableExist(tableName)) createTable(instance);
Log.info("[ORM] End init SQL table "+elemClass.getSimpleName());
Log.debug("[ORM] End init SQL table "+elemClass.getSimpleName());
} catch (Exception|ExceptionInInitializerError e) {
throw new ORMInitTableException(elemClass, e);
}