]> source.dussan.org Git - sonarqube.git/commitdiff
Improve logs of DatabaseServerCompatibility
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 16 Jun 2014 12:30:35 +0000 (14:30 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 16 Jun 2014 12:30:43 +0000 (14:30 +0200)
sonar-server/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java
sonar-server/src/main/webapp/WEB-INF/lib/database_version.rb

index 75c8ba72a3dbfd3ce07c5e308028a3041d636ba2..7675bee941a2f0d418bf47603468a524b070d8de 100644 (file)
@@ -39,7 +39,7 @@ public class DatabaseServerCompatibility implements Startable {
       throw MessageException.of("Database relates to a more recent version of sonar. Please check your settings.");
     }
     if (status == DatabaseVersion.Status.REQUIRES_UPGRADE) {
-      LoggerFactory.getLogger(DatabaseServerCompatibility.class).info("Database must be upgraded. Please browse /setup");
+      LoggerFactory.getLogger(DatabaseServerCompatibility.class).warn("Database must be upgraded. Please browse /setup");
     }
   }
 
index 24415ce1c0e373c2d658782560133fb5068f17d2..e76c817d444b1541a6b749424d516b4cf62ef00c 100644 (file)
@@ -73,8 +73,6 @@ class DatabaseVersion
       upgrade_and_start()
     elsif uptodate?
       load_java_web_services
-    else
-      puts 'Database must be upgraded. Please browse /setup'
     end
     uptodate?
   end