Skip to content

Commit 71b5128

Browse files
committed
revert: "chore: configure Liquibase to log info messages on non-prod environments"
Too much messages are shown during startup, I'd like to have less messages. This reverts commit 9ba6313.
1 parent abb9d5e commit 71b5128

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/ru/mystamps/web/support/liquibase/LiquibaseSupport.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public static SpringApplication createSpringApplication() {
5353
// See https://docs.liquibase.com/parameters/should-run.html
5454
System.setProperty("liquibase.shouldRun", "false");
5555

56+
// Override value (WARN) from application*.properties
57+
System.setProperty("logging.level.liquibase", "INFO");
58+
5659
// LATER: Ideally, we don't need to use a connection pool (HikariCP) in this case.
5760
// Consider configuring spring.datasource.type property.
5861
SpringApplication app = new SpringApplication(LiquibaseOnlyStartup.class);

src/main/resources/application-postgres.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ spring.liquibase.change-log: classpath:/liquibase/changelog.xml
3232

3333
logging.level.root: INFO
3434
logging.level.ru.mystamps: INFO
35+
logging.level.liquibase: WARN
3536
logging.level.org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: WARN
3637
logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: WARN
3738

src/main/resources/application-test.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ logging.level.ru.mystamps.web.support.spring.security.SessionLocaleResolverAware
4444
logging.level.ru.mystamps.web.feature.category.CategoryServiceImpl: INFO
4545
logging.level.ru.mystamps.web.feature.country.CountryServiceImpl: INFO
4646

47+
logging.level.liquibase: WARN
4748
logging.level.org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: WARN
4849
logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: WARN
4950

src/main/resources/application-travis.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ spring.liquibase.change-log: classpath:/liquibase/changelog.xml
2929

3030
logging.level.root: INFO
3131
logging.level.ru.mystamps: INFO
32+
logging.level.liquibase: WARN
3233
logging.level.org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: WARN
3334
logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: WARN
3435

0 commit comments

Comments
 (0)