Vasavi
August 1, 2023, 4:06am
1
Could you please help to enable Query logs that used internally for this code snippet
public interface UserRepository extends CouchbaseRepository<User, String> {
@Query("#{#n1ql.selectEntity} WHERE name = $1 limit 10")
List<User> getUserByName(String name);
Hello @Vasavi , this post should answer your question: Spring Data Log Queries: How to Set Your Configuration
The tl;dr; would be to add this to your application.properties file:
logging.level.org.springframework.data.couchbase.repository.query: DEBUG
I think that blog is outdated.
the package is org.springframework.data.couchbase.core
ReactiveFindByQueryOperationSupport
package org.springframework.data.couchbase.core;
...
private static final Logger LOG = LoggerFactory.getLogger(ReactiveFindByQueryOperationSupport.class);
...
if (LOG.isDebugEnabled()) {
LOG.debug("findByQuery {} statement: {}", pArgs, statement);
}
system
Closed
November 1, 2023, 10:39pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.