Skip to content
Snippets Groups Projects
Commit e632d01a authored by srosse's avatar srosse
Browse files

no-jira: remove annoying message in olat.debug=true

parent f851272e
No related branches found
No related tags found
No related merge requests found
...@@ -98,6 +98,13 @@ public class WebappHelper implements Initializable, Destroyable, ServletContextA ...@@ -98,6 +98,13 @@ public class WebappHelper implements Initializable, Destroyable, ServletContextA
throw new StartupException("Error getting canonical context root.", e); throw new StartupException("Error getting canonical context root.", e);
} }
servletContextPath = servletContext.getContextPath(); 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(); testUtf8FileSystem();
logStartup(); logStartup();
...@@ -182,7 +189,7 @@ public class WebappHelper implements Initializable, Destroyable, ServletContextA ...@@ -182,7 +189,7 @@ public class WebappHelper implements Initializable, Destroyable, ServletContextA
//String srcPath = getContextRoot() + "/" + relPathToSrc; //String srcPath = getContextRoot() + "/" + relPathToSrc;
File fil = new File(fullPathToSrc); File fil = new File(fullPathToSrc);
if(fil.exists()){ if(fil.exists()){
log.info("Path to source set to: " + fullPathToSrc); log.debug("Path to source set to: " + fullPathToSrc);
}else{ }else{
if (Settings.isDebuging() || I18nModule.isTransToolEnabled()) { if (Settings.isDebuging() || I18nModule.isTransToolEnabled()) {
log.error("Path to source wrong, debugging may not work as expected: " + fullPathToSrc, new Exception("getSourcePath")); log.error("Path to source wrong, debugging may not work as expected: " + fullPathToSrc, new Exception("getSourcePath"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment