You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Importing redisvl.query configures root logging to stdout #577
In our case this surfaced as stdio MCP transport failures because log lines were emitted on the same stdout stream as JSON-RPC messages.
Expected behavior
Importing RedisVL should not mutate the root logging configuration.
If RedisVL wants library logging, a safer pattern would be one of:
attach a handler only to RedisVL's own logger
use logging.NullHandler()
leave handler configuration entirely to the application
Also, libraries generally should not default logs to stdout.
Likely source
redisvl/utils/log.py appears to call logging.basicConfig(..., stream=sys.stdout), and redisvl/query/query.py calls get_logger(__name__) at import time.
That combination means import redisvl.query has global side effects immediately.
If useful, I can open a follow-up PR with a minimal fix.
So import redisvl.query no longer installs a root StreamHandler, does not change the root level, and does not route root logs to sys.stdout in the current source tree.
This was checked with Codex assistance, with the source and repro output manually reviewed before posting.
Activity
omribz156 commentedon May 25, 2026
I checked this against current
mainand it looks like the import-time root logging side effect is already gone.Source trace:
redisvl/utils/log.pynow only addslogging.NullHandler()to the RedisVL logger when needed.d992f8f/ PR Avoid configuring root logger in RedisVL #445 (Avoid configuring root logger in RedisVL).I also reran the repro shape against
import redisvl.query.queryon currentmain:So
import redisvl.queryno longer installs a rootStreamHandler, does not change the root level, and does not route root logs tosys.stdoutin the current source tree.This was checked with Codex assistance, with the source and repro output manually reviewed before posting.
vishal-bala commentedon Aug 6, 2026
Seems to have been already resolved with #445