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
1 changed files with 2 additions and 2 deletions

View File

@ -42,11 +42,11 @@ public final class ORM {
if (tables.contains(elemClass)) return; if (tables.contains(elemClass)) return;
try { try {
tables.add(elemClass); 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(); E instance = elemClass.newInstance();
String tableName = instance.tableName(); String tableName = instance.tableName();
if (!tableExist(tableName)) createTable(instance); 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) { } catch (Exception|ExceptionInInitializerError e) {
throw new ORMInitTableException(elemClass, e); throw new ORMInitTableException(elemClass, e);
} }