Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-classify unnecessary ldata logging as DEBUG #526

Open
skovaka opened this issue Feb 24, 2025 · 0 comments
Open

Re-classify unnecessary ldata logging as DEBUG #526

skovaka opened this issue Feb 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@skovaka
Copy link

skovaka commented Feb 24, 2025

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:

2025-02-24 16:40:42 - INFO - >>> {"query": "query LDataChildren($argPath: String!) {\n  ldataResolvePathData(argPath: $argPath) {\n    finalLinkTarget {\n      type\n      childLdataTreeEdges(filter: {child: {removed: {equalTo: false}}}) {\n        nodes {\n          child {\n            name\n          }\n        }\n      }\n    }\n  }\n}", "variables": {"argPath": "..."}}
2025-02-24 16:40:42 - INFO - <<< {"data":{"ldataResolvePathData":{"finalLinkTarget":{"type":"DIR","childLdataTreeEdges":{"nodes":[{"child":{"name":"..."}},{"child":{"name":"..."}},{"child":{"name":"..."}},{"child":{"name":"..."}},{"child":{"name":"..."}},{"child":{"name":"..."}},{"child":{"name":"..."}},{"child":{"name":"..."}},{"child":{"name":"..."}}]}}}}}

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!

@skovaka skovaka added the enhancement New feature or request label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant