3

I am using Spring data r2dbc for mysql.

implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
runtimeOnly 'dev.miku:r2dbc-mysql'
runtimeOnly 'mysql:mysql-connector-java'

I am able to print the query using the below log statement.

logging.level.org.springframework.r2dbc: DEBUG

Itis only printing the statement but not the query parameter.

Sample log statement,

o.s.r2dbc.core.DefaultDatabaseClient     : Executing SQL statement [select * from project where usr_id = :usrId and start_time BETWEEN :stDate and :endTime]
oguz ismail
  • 1
  • 16
  • 47
  • 69
user1578872
  • 7,808
  • 29
  • 108
  • 206
  • can you check this https://stackoverflow.com/questions/60972914/log-values-of-query-parameters-in-spring-data-r2dbc – GvSharma Feb 09 '21 at 06:09
  • @GvSharma, logging.level.dev.miku.r2dbc.mysql.client.ReactorNettyClient=TRACE -> prints a lot and very difficult to read the logs – user1578872 Feb 09 '21 at 06:12

0 Answers0