From 4e1066c044cc94be23cba33570b67ae944717af8 Mon Sep 17 00:00:00 2001 From: Lihui Hu Date: Wed, 22 May 2024 12:28:00 -0400 Subject: [PATCH] change log level to test --- .../tasks/DatabaseIndexSyncTaskInitializer.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/tasks/DatabaseIndexSyncTaskInitializer.java b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/tasks/DatabaseIndexSyncTaskInitializer.java index a930d1c2..e61545e1 100644 --- a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/tasks/DatabaseIndexSyncTaskInitializer.java +++ b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/tasks/DatabaseIndexSyncTaskInitializer.java @@ -32,24 +32,24 @@ public void setEntityString(String entities) { @Override public void run(SchedulerPlugin.JobStats stats, SchedulerPlugin.TaskListener l) { if(entityString.length()==0) { - log.info("No entities defined for the database and index sync scheduler."); + log.error("DatabaseIndexSyncTask: No entities defined for the database and index sync scheduler."); return; } Set syncEntities = Stream.of(entityString.split(",")).map(entity->entity.trim()).collect(Collectors.toSet()); syncEntities.retainAll(supportedEntities); if(syncEntities.size()==0) { - log.info("No allowed entities defined for the database and index sync scheduler."); + log.error("DatabaseIndexSyncTask: No allowed entities defined for the database and index sync scheduler."); return; } for(String entity: syncEntities) { String entityClassName = generateEntityClassName(entity); - log.info("Entity class: " + entityClassName); + log.error("DatabaseIndexSyncTask: Entity class: " + entityClassName); if(entityClassName.isEmpty()) { - log.warn("Illegal entity class: " + entity + " in database and index sync scheduler."); + log.error("Illegal entity class: " + entity + " in database and index sync scheduler."); continue; } @@ -57,7 +57,7 @@ public void run(SchedulerPlugin.JobStats stats, SchedulerPlugin.TaskListener l) try { entityClass = Class.forName(entityClassName); } catch (ClassNotFoundException e) { - log.warn("Entity class is not found: " + entityClassName); + log.error("Entity class is not found: " + entityClassName); continue; }