ZequanLIU opened a new pull request, #284:
URL: https://github.com/apache/incubator-hugegraph-ai/pull/284

   This PR fixes #244 by reducing excessive third-party library log output.
   
     ## Changes
     - Added log level configuration for third-party libraries in `log.py`
     - Set the following libraries to WARNING level:
       - httpx/httpcore (HTTP client)
       - faiss (vector search)
       - apscheduler (task scheduler)
       - pyhugegraph (HugeGraph client)
       - urllib3/requests (HTTP libraries)
       - gradio (UI framework)
     - Configured uvicorn.access and uvicorn.error to WARNING level
     - Kept HugeGraph AI business logs (llm:) at original level
   
     ## Result
     Before:
     INFO     httpx: HTTP Request: GET https://api.gradio.app/pkg-version 
"HTTP/1.1 200
     OK"
     INFO     faiss.loader: Loading faiss with AVX2 support.
     INFO     apscheduler.scheduler: Adding job tentatively...
   
     After:
     INFO     llm: Loading prompt file 'config_prompt.yaml' successfully.
     INFO     llm: (Status) Authentication is disabled now.
     INFO     llm: KgBuilder total time took 25.23 ms
   
     ## Testing
     Tested locally by running the demo app and confirming third-party logs are
     suppressed while business logs remain.
   
     Fixes #244
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to