Skip to content

Commit 9ba6313

Browse files
committed
chore: configure Liquibase to log info messages on non-prod environments
Follow-up to 8b7345b commit to ensure that analytics is really disabled.
1 parent 4cafdf6 commit 9ba6313

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

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

-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ 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-
5956
// LATER: Ideally, we don't need to use a connection pool (HikariCP) in this case.
6057
// Consider configuring spring.datasource.type property.
6158
SpringApplication app = new SpringApplication(LiquibaseOnlyStartup.class);

src/main/resources/application-postgres.properties

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ 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
3635
logging.level.org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: WARN
3736
logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: WARN
3837

src/main/resources/application-test.properties

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ 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
4847
logging.level.org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: WARN
4948
logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: WARN
5049

src/main/resources/application-travis.properties

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ 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
3332
logging.level.org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: WARN
3433
logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: WARN
3534

0 commit comments

Comments
 (0)