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

add infrastructure for logging #841

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

add infrastructure for logging #841

wants to merge 1 commit into from

Conversation

skshetry
Copy link
Member

export DATACHAIN_LOG_LEVEL="debug" DATACHAIN_LOG_OUTPUT=true DATACHAIN_LOG_EXTERNAL=fsspec,s3fs
python script.py
09:29:07 - s3fs - DEBUG - Setting up s3fs instance [4084/fsspecIO/Task-1]
09:29:07 - s3fs - DEBUG - RC: caching enabled? True (explicit option is True) [4084/fsspecIO/Task-1]
09:29:09 - s3fs - DEBUG - RC: Creating a new regional client for 'bucket' on the region 'us-east-1' [4084/fsspecIO/Task-1]
09:29:11 - s3fs - DEBUG - RC: Creating a new regional client for 'dvc-public' on the region 'us-east-2' [4084/fsspecIO/Task-8]
09:29:11 - s3fs - DEBUG - CALL: head_object - ({},) - {'Bucket': 'dvc-public', 'Key': 'data/dvcx/cats-and-dogs'} [4084/fsspecIO/Task-8]
09:29:12 - s3fs - DEBUG - Client error (maybe retryable): An error occurred (404) when calling the HeadObject operation: Not Found [4084/fsspecIO/Task-8]

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 31.03448% with 20 lines in your changes missing coverage. Please review.

Project coverage is 87.28%. Comparing base (ce1b09a) to head (df0ec95).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/datachain/logger.py 25.92% 18 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #841      +/-   ##
==========================================
- Coverage   87.42%   87.28%   -0.15%     
==========================================
  Files         128      129       +1     
  Lines       11424    11453      +29     
  Branches     1557     1564       +7     
==========================================
+ Hits         9988     9997       +9     
- Misses       1044     1062      +18     
- Partials      392      394       +2     
Flag Coverage Δ
datachain 87.22% <31.03%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant