chore: use env variables for logging level

pull/1/head
Antoine 2023-02-27 17:46:17 +01:00
parent bb19bca946
commit bc7e565337
2 changed files with 10 additions and 5 deletions

View File

@ -11,9 +11,9 @@ spring.datasource.username=sa
spring.datasource.password=password spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
logging.level.org.hibernate.SQL=DEBUG logging.level.org.hibernate.SQL=${BOUSSOLE_PLUSS_SQL_LOG_LEVEL}
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE logging.level.org.hibernate.type.descriptor.sql.BasicBinder=${BOUSSOLE_PLUSS_SQL_BINDER_LOG_LEVEL}
logging.level.org.springframework.jdbc.core.JdbcTemplate=DEBUG logging.level.org.springframework.jdbc.core.JdbcTemplate=${BOUSSOLE_PLUSS_SPRING_TEMPLATE_LOG_LEVEL}
logging.level.org.springframework.jdbc.core.StatementCreatorUtils=TRACE logging.level.org.springframework.jdbc.core.StatementCreatorUtils=${BOUSSOLE_PLUSS_SPRING_STATEMENT_LOG_LEVEL}
management.endpoints.web.exposure.include=* management.endpoints.web.exposure.include=*

View File

@ -9,6 +9,11 @@ services:
- "8190:80" - "8190:80"
backend: backend:
environment:
- BOUSSOLE_PLUSS_SQL_LOG_LEVEL=DEBUG
- BOUSSOLE_PLUSS_SQL_BINDER_LOG_LEVEL=TRACE
- BOUSSOLE_PLUSS_SPRING_TEMPLATE_LOG_LEVEL=DEBUG
- BOUSSOLE_PLUSS_SPRING_STATEMENT_LOG_LEVEL=TRACE
build: backend/ build: backend/
ports: ports:
- "8191:8080" - "8191:8080"