diff --git a/README.md b/README.md index b21bfb22d..6409d7307 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,3 @@ administrative functions that are not yet implemented in the new UI. maintain backwards compatibility. - The main idea behind this project is to move legacy UI functions into an OpenMRS module that these implementations can install until they are able to migrate away from it, since most of the implementations of OpenMRS around the world are running OpenMRS 1.9. - -- It is compulsory to run openmrs-module-legacyui against legacyui branch of openmrs-core -that I have created to eventually remove legacyui. diff --git a/omod/src/main/java/org/openmrs/web/WebComponentRegistrar.java b/omod/src/main/java/org/openmrs/web/WebComponentRegistrar.java index 595f9335b..8a62bfce2 100644 --- a/omod/src/main/java/org/openmrs/web/WebComponentRegistrar.java +++ b/omod/src/main/java/org/openmrs/web/WebComponentRegistrar.java @@ -22,9 +22,13 @@ import org.springframework.stereotype.Component; import org.springframework.web.context.ServletContextAware; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + @Component public class WebComponentRegistrar implements ServletContextAware { - + private static final Logger log = LoggerFactory.getLogger(WebComponentRegistrar.class); + @Override public void setServletContext(ServletContext servletContext) { @@ -61,7 +65,8 @@ public void setServletContext(ServletContext servletContext) { //This happens on running openmrs after InitializationFilter or UpdateFilter //hence requiring a restart to see any page other than index.htm //After a restart, all mappings will then happen within Listener.contextInitialized() - ex.printStackTrace(); + + log.error("Error registering web component", ex); } }