Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
100 views

Issue with p6spy Logging in Spring Boot Application

I’m using p6spy-spring-boot-starter in my Spring Boot application to analyze MySQL queries. I’ve added the following dependencies in my pom.xml: <dependency> <groupId>com.github....
Joy's user avatar
  • 4,451
2 votes
2 answers
1k views

spring-boot-data-source-decorator with p6spy are not logging insert statements

I am using p6spy to log the sql statements.we are using springboot/hibernate for Java ORM mapping.I see only select statements are getting loggged in spy.log.when insert statemnets are executing in ...
user739115's user avatar
  • 1,187
0 votes
1 answer
389 views

Spring 2.x multiple datasources and p6spy

I've created a multiple datasource setup with spring-boot. It looks like this: application.yaml: app: db1: jdbc-url:... username:... password:... db2:... Config-class: @...
Krwasch's user avatar
  • 49
0 votes
0 answers
283 views

Something strange happend after spring-boot auto restart

I use a static threadlocal variable store per request sql query count. As the code public class App { public static ThreadLocal<Integer> count = ThreadLocal.withInitial(() -> 0);; } ...
Cao Vison's user avatar
0 votes
1 answer
1k views

P6Spy Spring Boot starter decorator produces empty output

I configured a Spring Boot starter P6Spy decorator as per the instructions on their site: ## p6spy ### # Register P6LogFactory to log JDBC events decorator.datasource.p6spy.enable-logging=true ...
Simeon Leyzerzon's user avatar
3 votes
2 answers
3k views

p6spy outputs sql messages twice with spring boot

I want to show sql parameters via p6spy in spring boot, because hibernate is showing sql parameters quite bulky. But for some reason p6spy logger output sql message twice although actually queries to ...
Дима Годиков's user avatar
1 vote
1 answer
3k views

Specify user's home directory in a .properties file

I am trying to integrate p6spy (3.x.x) in my project, and in spy.properties file, I wanted to specify logfile=${user.home}/logs/spy-%d{yyyyMMdd}.log or at least logfile=${user.home}/logs/spy.log ...
Turzo's user avatar
  • 590
0 votes
1 answer
5k views

Gradle test dependencies not loaded in Spring Boot test

I am trying to work with p6spy in Spring Boot tests. I have a test class annotated with @RunWith(SpringRunner.class) @SpringBootTest My gradle.build looks like this dependencies { compile('org....
sorencito's user avatar
  • 2,605