From ba3127221160de8f4c8e4954e318e9b9d2332178 Mon Sep 17 00:00:00 2001 From: Pavol Mederly Date: Wed, 15 Apr 2015 17:51:14 +0200 Subject: [PATCH] Changed some INFO/WARN messages to DEBUG ones. --- .../evolveum/midpoint/web/application/DescriptorLoader.java | 4 ++-- .../midpoint/notifications/impl/NotificationChangeHook.java | 2 +- .../com/evolveum/midpoint/repo/sql/OrgClosureManager.java | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/DescriptorLoader.java b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/DescriptorLoader.java index e6718d6be18..0de548c970b 100644 --- a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/DescriptorLoader.java +++ b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/DescriptorLoader.java @@ -58,7 +58,7 @@ public static Map[]> getActions() { } public void loadData(MidPointApplication application) { - LOGGER.info("Loading data from descriptor files."); + LOGGER.debug("Loading data from descriptor files."); String baseFileName = "/WEB-INF/descriptor.xml"; String customFileName = "/WEB-INF/classes/descriptor.xml"; @@ -163,7 +163,7 @@ private void scanPackagesForPages(List packages, MidPointApplication app throws InstantiationException, IllegalAccessException { for (String pac : packages) { - LOGGER.info("Scanning package package {} for page annotations", new Object[]{pac}); + LOGGER.debug("Scanning package package {} for page annotations", new Object[]{pac}); Set classes = ClassPathUtil.listClasses(pac); for (Class clazz : classes) { diff --git a/model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationChangeHook.java b/model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationChangeHook.java index aa3dc6dea89..5dacfc6e42a 100644 --- a/model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationChangeHook.java +++ b/model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationChangeHook.java @@ -141,7 +141,7 @@ private Event createRequest(PrismObject object, Task task, if (task.getOwner() != null) { event.setRequester(new SimpleObjectRefImpl(notificationsUtil, task.getOwner().asObjectable())); } else { - LOGGER.warn("No owner for task " + task + ", therefore no requester will be set for event " + event.getId()); + LOGGER.debug("No owner for task " + task + ", therefore no requester will be set for event " + event.getId()); } // if no OID in object (occurs in 'add' operation), we artificially insert it into the object) diff --git a/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/OrgClosureManager.java b/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/OrgClosureManager.java index ba13991c5f8..1b03a1f9573 100644 --- a/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/OrgClosureManager.java +++ b/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/OrgClosureManager.java @@ -290,7 +290,7 @@ public void execute(Connection connection) throws SQLException { columns++; } if (columns > 0) { - LOGGER.info("There are {} columns in {} (obtained via DatabaseMetaData)", columns, CLOSURE_TABLE_NAME); + LOGGER.debug("There are {} columns in {} (obtained via DatabaseMetaData)", columns, CLOSURE_TABLE_NAME); if (columns != 3) { wrongNumberOfColumns.setValue(true); } @@ -302,7 +302,7 @@ public void execute(Connection connection) throws SQLException { ResultSet rs = stmt.executeQuery("select * from " + CLOSURE_TABLE_NAME); int cols = rs.getMetaData().getColumnCount(); if (cols > 0) { - LOGGER.info("There are {} columns in {} (obtained via resultSet.getMetaData())", cols, CLOSURE_TABLE_NAME); + LOGGER.debug("There are {} columns in {} (obtained via resultSet.getMetaData())", cols, CLOSURE_TABLE_NAME); if (cols != 3) { wrongNumberOfColumns.setValue(true); } @@ -351,7 +351,7 @@ public boolean isEnabled() { * Thorough check is conducted by recomputing the closure table. */ public void checkAndOrRebuild(SqlRepositoryServiceImpl service, boolean check, boolean rebuild, boolean stopOnFailure, boolean quickCheckOnly, OperationResult result) { - LOGGER.info("Org closure check/rebuild request: check={}, rebuild={}", check?(quickCheckOnly?"quick":"thorough"):"none", rebuild); + LOGGER.debug("Org closure check/rebuild request: check={}, rebuild={}", check?(quickCheckOnly?"quick":"thorough"):"none", rebuild); if (!isEnabled()) { result.recordWarning("Organizational closure processing is disabled."); return;