gavlyukovskiy / spring-boot-data-source-decorator

Spring Boot integration with p6spy, datasource-proxy, flexy-pool and spring-cloud-sleuth
Apache License 2.0
870 stars 83 forks source link

sql cannot print #90

Closed 9527dong closed 11 months ago

9527dong commented 1 year ago

The jar package I use is:

        <dependency>
            <groupId>com.github.gavlyukovskiy</groupId>
            <artifactId>datasource-proxy-spring-boot-starter</artifactId>
            <version>1.8.1</version>
        </dependency>

My application.yml configuration is:

logging:
  level:
    net.ttddyy.dsproxy.listener.logging: DEBUG

But the sql is not printed in my logs, what is the reason?

I am using spring data , spring boot version is 2.7.4.

gavlyukovskiy commented 1 year ago

@9527dong I'm afraid that's not enough information to help you. Most likely something is wrong with your logging configuration, with that I cannot help you.