cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging: is it possible to trace all executed NXQL?

promanov_
Star Contributor
Star Contributor

Is there a debug flag to activate tracing of executed NXQL queries? I'd like to see the queries with resolved parameters.

In case the params variables don't contain the expected values, the query can return empty result without any errors. These errors aren't easy to spot and analyse.

I was wondering how to trace resulting NXQL queries after EL resolution.

Any idea? Thanks.

1 ACCEPTED ANSWER

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hi,

You can find the log4j xml configuration here: nuxeo/lib

Add these lines, and it should traced all nxql queries:

  <category name="org.nuxeo.ecm.platform.query">
    <priority value="TRACE" />
  </category>

View answer in original post

2 REPLIES 2

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hi,

You can find the log4j xml configuration here: nuxeo/lib

Add these lines, and it should traced all nxql queries:

  <category name="org.nuxeo.ecm.platform.query">
    <priority value="TRACE" />
  </category>

Thanks for the fast response!