Skip to content

Commit 8cc2996

Browse files
committed
QueryTest: enable param debug logging
1 parent 5421ab4 commit 8cc2996

File tree

1 file changed

+6
-0
lines changed
  • tests/objectbox-java-test/src/main/java/io/objectbox/query

1 file changed

+6
-0
lines changed

tests/objectbox-java-test/src/main/java/io/objectbox/query/QueryTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import io.objectbox.AbstractObjectBoxTest;
2929
import io.objectbox.Box;
3030
import io.objectbox.BoxStoreBuilder;
31+
import io.objectbox.DebugFlags;
3132
import io.objectbox.TestEntity;
3233
import io.objectbox.TestEntity_;
3334
import io.objectbox.TxCallback;
@@ -40,6 +41,11 @@ public class QueryTest extends AbstractObjectBoxTest {
4041

4142
private Box<TestEntity> box;
4243

44+
@Override
45+
protected BoxStoreBuilder createBoxStoreBuilder(boolean withIndex) {
46+
return super.createBoxStoreBuilder(withIndex).debugFlags(DebugFlags.LOG_QUERY_PARAMETERS);
47+
}
48+
4349
@Before
4450
public void setUpBox() {
4551
box = getTestEntityBox();

0 commit comments

Comments
 (0)