I have OPAL_LOG_MODULE_EXCLUDE_LIST=["uvicorn"] se...
# opal
k
I have OPAL_LOG_MODULE_EXCLUDE_LIST=["uvicorn"] set in my opal-client but continue to get logs like in my opal-client container {"text": "2025-12-22T222901.860010+0000 | uvicorn.protocols.http.httptools_impl | INFO | 100.98.8.170:57006 - \"GET /ready HTTP/1.1\" 200\n", "record": {"elapsed": {"repr": "00035.451661", "seconds": 35.451661}, "exception": null, "extra": {}, "file": {"name": "httptools_impl.py", "path": "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py"}, "function": "send", "level": {"icon": "ℹ️", "name": "INFO", "no": 20}, "line": 476, "message": "100.96.6.170:57006 - \"GET /ready HTTP/1.1\" 200", "module": "httptools_impl", "name": "uvicorn.protocols.http.httptools_impl", "process": {"id": 11, "name": "MainProcess"}, "thread": {"id": 136954652896128, "name": "MainThread"}, "time": {"repr": "2025-12-22 222901.860010+00:00", "timestamp": 1766442541.86001}}}
a
Hi @KSM, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
p
Hey, thanks for reaching out ! It seems our team is a little busy right now, a human will be with you within the next hour or so. In the meantime, can I help you ?
a
The issue is that
uvicorn.protocols.http.httptools_impl
is explicitly ​*included*​ via
OPAL_LOG_MODULE_INCLUDE_LIST
, which takes precedence. (1) By default: •
OPAL_LOG_MODULE_EXCLUDE_LIST
is set to
["uvicorn"]
•
OPAL_LOG_MODULE_INCLUDE_LIST
is set to
["uvicorn.protocols.http"]
The include list specifically adds back
uvicorn.protocols.http
(and its submodules like
httptools_impl
) , which overrides the exclusion of the parent
uvicorn
module. ​*Solution*​: Set
OPAL_LOG_MODULE_INCLUDE_LIST
to an empty list to stop these logs:
Copy code
OPAL_LOG_MODULE_INCLUDE_LIST=[]
This will allow your exclude list to fully suppress uvicorn logs.
To learn more, see the sources I considered: [[1] OPAL Configuration Guide | OPAL](https://docs.opal.ac/getting-started/configuration)
Thanks for the feedback, glad I was helpful.