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
Re-classify unnecessary ldata logging as DEBUG #526
When using the python logging module, operations like downloading remote files or LPath.iterdir() generates a bunch of logging.INFO messages containing long dictionaries like this:
Performing many filesystem operations really fills up the workflow log and makes it hard to read. It seems like the level of these messages should be set to logging.DEBUG instead of logging.INFO? Thanks!
These lines aren't coming from latch. LPath.iterdir() calls query_with_retry
(src/latch/ldata/_transfer/utils.py:26) → latch_sdk_gql.execute.execute, which
builds gql.Client(transport=RequestsHTTPTransport(...)). In gql 3.5.0, gql/transport/requests.py:227 logs the request as log.info(">>> %s", ...) and :263 the response as log.info("<<< %s", ...) — the >>>/<<< prefixes above.
Upstream already changed it: graphql-python/gql#552, "Set logging level to DEBUG
for all transports", merged 2025-05-25. That landed after v3.5.3, so the first
release carrying it is v4.0.0. pyproject.toml:38 pins gql==3.5.0, which is
why it still shows up.
That leaves either bumping to gql 4.x — which also pulls in the transport
refactor from #557 — or having latch set the level on gql.transport.requests
itself, which changes logging config for anything else importing latch. Both look
like calls for you rather than me. Happy to send a patch for whichever you'd
prefer.
Activity
asharaali commentedon Sep 9, 2026
These lines aren't coming from latch.
LPath.iterdir()callsquery_with_retry(
src/latch/ldata/_transfer/utils.py:26) →latch_sdk_gql.execute.execute, whichbuilds
gql.Client(transport=RequestsHTTPTransport(...)). In gql 3.5.0,gql/transport/requests.py:227logs the request aslog.info(">>> %s", ...)and:263the response aslog.info("<<< %s", ...)— the>>>/<<<prefixes above.Upstream already changed it: graphql-python/gql#552, "Set logging level to DEBUG
for all transports", merged 2025-05-25. That landed after v3.5.3, so the first
release carrying it is v4.0.0.
pyproject.toml:38pinsgql==3.5.0, which iswhy it still shows up.
That leaves either bumping to gql 4.x — which also pulls in the transport
refactor from #557 — or having latch set the level on
gql.transport.requestsitself, which changes logging config for anything else importing latch. Both look
like calls for you rather than me. Happy to send a patch for whichever you'd
prefer.