Background
The application is configured to enable DEBUG logging for the packages com.javarag and com.javarag.service in src/main/resources/application.yml and src/main/resources/application-docker.yml, but every class in this repository lives under br.com.arquivolivre.myjavagenie (e.g. br.com.arquivolivre.myjavagenie.service.QueryService). The logging settings are therefore dead configuration — they never take effect.
Impact
- Developers debugging the RAG pipeline (retrieval, embedding, generation) cannot get the verbose logging the config advertises.
- Misleading configuration creates a false sense of observability: anyone reading
application.yml believes service-level DEBUG logs are on.
- Troubleshooting production issues under the Docker profile is harder than intended.
How to reproduce
- Start the app with the default profile (or
docker profile).
- Send a query to
POST /api/chat/query.
- Observe that no
DEBUG lines from QueryService, RetrievalEngine, or ChromaVectorRepository appear, even though com.javarag.service: DEBUG is set.
Where the fix should land
Replace the com.javarag entries with the real base package br.com.arquivolivre.myjavagenie in both YAML files. Expected result:
logging:
level:
root: INFO
br.com.arquivolivre.myjavagenie: INFO
br.com.arquivolivre.myjavagenie.service: DEBUG
br.com.arquivolivre.myjavagenie.repository: DEBUG
dev.langchain4j: WARN
Keep the root and dev.langchain4j levels as-is.
Files touched
src/main/resources/application.yml
src/main/resources/application-docker.yml
Acceptance criteria
Background
The application is configured to enable DEBUG logging for the packages
com.javaragandcom.javarag.serviceinsrc/main/resources/application.ymlandsrc/main/resources/application-docker.yml, but every class in this repository lives underbr.com.arquivolivre.myjavagenie(e.g.br.com.arquivolivre.myjavagenie.service.QueryService). The logging settings are therefore dead configuration — they never take effect.Impact
application.ymlbelieves service-level DEBUG logs are on.How to reproduce
dockerprofile).POST /api/chat/query.DEBUGlines fromQueryService,RetrievalEngine, orChromaVectorRepositoryappear, even thoughcom.javarag.service: DEBUGis set.Where the fix should land
Replace the
com.javaragentries with the real base packagebr.com.arquivolivre.myjavageniein both YAML files. Expected result:Keep the
rootanddev.langchain4jlevels as-is.Files touched
src/main/resources/application.ymlsrc/main/resources/application-docker.ymlAcceptance criteria
br.com.arquivolivre.myjavageniewith nocom.javaragremnants.QueryService/RetrievalEngineon a live query.mvn testandmvn spotless:checkpass.