Skip to content

Add debug logs for USE_MOCK_SEARCH environment variable in search str…#6

Merged
abu0306 merged 1 commit into
devfrom
hotfix/tools
Mar 10, 2026
Merged

Add debug logs for USE_MOCK_SEARCH environment variable in search str…#6
abu0306 merged 1 commit into
devfrom
hotfix/tools

Conversation

@abu0306

@abu0306 abu0306 commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

This pull request adds debugging statements to log the value of the USE_MOCK_SEARCH environment variable at several points in the codebase. These logs will help verify whether mock search functionality is enabled during execution.

Debugging improvements:

  • Added a log statement in lib/server/nacos.ts at the start of the fetchNacosConfig function to output the value of process.env.USE_MOCK_SEARCH.
  • Added a log statement after environment variables are injected in lib/server/nacos.ts to output the value of process.env.USE_MOCK_SEARCH.
  • Added a log statement in app/api/v1/search/stream/route.ts before selecting the search stream implementation to output the value of process.env.USE_MOCK_SEARCH.…eam and Nacos config

@abu0306
abu0306 merged commit 35ec3bb into dev Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant