diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-10-16 12:15:40 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-10-16 12:15:40 +0200 |
commit | 0acb6e7876f66f9ec6718eb94d7bbadf7089e628 (patch) | |
tree | 3f0d6f636462dc2ae5b5d73e9bdd722877196e69 /sonar-application/src | |
parent | 6172648a4b4f13b151c49eeb5518da608c847477 (diff) | |
download | sonarqube-0acb6e7876f66f9ec6718eb94d7bbadf7089e628.tar.gz sonarqube-0acb6e7876f66f9ec6718eb94d7bbadf7089e628.zip |
Add a warning when server development mode is enabled
Diffstat (limited to 'sonar-application/src')
-rw-r--r-- | sonar-application/src/main/java/org/sonar/application/Webapp.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/Webapp.java b/sonar-application/src/main/java/org/sonar/application/Webapp.java index 19ad12c20c6..c49bc73112a 100644 --- a/sonar-application/src/main/java/org/sonar/application/Webapp.java +++ b/sonar-application/src/main/java/org/sonar/application/Webapp.java @@ -21,6 +21,7 @@ package org.sonar.application; import org.apache.catalina.Context; import org.apache.catalina.startup.Tomcat; +import org.slf4j.LoggerFactory; class Webapp { @@ -55,6 +56,7 @@ class Webapp { if (props.booleanOf("sonar.web.dev")) { context.addParameter(RAILS_ENV, "development"); context.addParameter(JRUBY_MAX_RUNTIMES, "3"); + LoggerFactory.getLogger(Webapp.class).warn("\n\n\n------ DEVELOPMENT MODE IS ENABLED ------\n\n\n"); } else { context.addParameter(RAILS_ENV, "production"); context.addParameter(JRUBY_MAX_RUNTIMES, "1"); |