Copilot commented on code in PR #284:
URL:
https://github.com/apache/incubator-hugegraph-ai/pull/284#discussion_r2203156332
##########
hugegraph-llm/src/hugegraph_llm/utils/log.py:
##########
@@ -57,3 +68,23 @@
watchfiles_logger.handlers.clear()
watchfiles_logger.handlers.extend(root_logger.handlers)
watchfiles_logger.setLevel(logging.ERROR)
+
+# Suppress third-party libraries logging
+third_party_loggers = {
+ "httpx": logging.WARNING, # HTTP client library (general HTTP
requests)
+ "httpcore": logging.WARNING, # HTTP core library
+ "faiss": logging.WARNING, # Vector search library
+ "faiss.loader": logging.WARNING, # Faiss loader
+ "apscheduler": logging.WARNING, # Task scheduler
+ "apscheduler.scheduler": logging.WARNING,
+ "apscheduler.executors": logging.WARNING,
+ "client": logging.WARNING, # Generic client logs
+ "pyhugegraph": logging.WARNING, # PyHugeGraph client
+ "urllib3": logging.WARNING, # URL library
+ "requests": logging.WARNING, # Requests library
+ "gradio": logging.WARNING, # Gradio library (if you want to
suppress more)
Review Comment:
The "gradio" logger is already configured above; this duplicate entry in
`third_party_loggers` could be removed or consolidated to avoid confusion.
```suggestion
# "gradio": logging.WARNING, # Gradio library (if you want to
suppress more)
```
--
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]