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

datasource-proxy-sample is not writing query logs #81

Open gtiwari333 opened 1 year ago

gtiwari333 commented 1 year ago

NOT A BUG!

When I run endpoints from SampleController or when I run tests, the datasource-proxy-sample module is not producing any logs into console. My first thought was there's something broken with the library. But later I found its due to the default log levels on the config.

I needed to change the log level with one of the following:

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

OR

decorator:
  datasource:
    datasource-proxy:
      query:
        log-level: INFO

Please document this somewhere on the README file so that people won't run into any confusion. Let me you if you accept PRs.

gavlyukovskiy commented 1 year ago

@gtiwari333 feel free to submit PR. I think it's worth documenting that spring boot logging level needs to be changed