From e632d01a72b14a699ccfb6d26dfaabbb64f9e63b Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Fri, 27 Apr 2012 15:32:08 +0200 Subject: [PATCH] no-jira: remove annoying message in olat.debug=true --- src/main/java/org/olat/core/util/WebappHelper.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/olat/core/util/WebappHelper.java b/src/main/java/org/olat/core/util/WebappHelper.java index 9158945e3a7..4ad205bee29 100644 --- a/src/main/java/org/olat/core/util/WebappHelper.java +++ b/src/main/java/org/olat/core/util/WebappHelper.java @@ -98,6 +98,13 @@ public class WebappHelper implements Initializable, Destroyable, ServletContextA throw new StartupException("Error getting canonical context root.", e); } servletContextPath = servletContext.getContextPath(); + + File fil = new File(fullPathToSrc); + if(fil.exists()){ + log.info("Path to source set to: " + fullPathToSrc); + } else { + log.info("Path to source doesn't exist (only needed for debugging purpose): " + fullPathToSrc); + } testUtf8FileSystem(); logStartup(); @@ -182,7 +189,7 @@ public class WebappHelper implements Initializable, Destroyable, ServletContextA //String srcPath = getContextRoot() + "/" + relPathToSrc; File fil = new File(fullPathToSrc); if(fil.exists()){ - log.info("Path to source set to: " + fullPathToSrc); + log.debug("Path to source set to: " + fullPathToSrc); }else{ if (Settings.isDebuging() || I18nModule.isTransToolEnabled()) { log.error("Path to source wrong, debugging may not work as expected: " + fullPathToSrc, new Exception("getSourcePath")); -- GitLab