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

logging: change from dictConfig to equivalent code for creating logge… (#8985 #8985

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Feb 8, 2023

…rs/handlers/formatters

dictConfig clears all handlers, and potentially disables existing loggers (we disabled this functionality though). There's much more code than necessary in dictConfig than what we need.

I have tried to keep the setup equivalent to what we had in the config, so I have not tried to cleanup the code.

…rs/handlers/formatters

dictConfig clears all handlers, and potentially disables existing loggers (we disabled this functionality
though). There's much more code than necessary in dictConfig than what we need.

I have tried to keep the setup equivalent to what we had in the config, so I have not tried to cleanup
the code.
@codecov
Copy link

codecov bot commented Feb 8, 2023

Codecov Report

Base: 93.08% // Head: 93.08% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (3c3589b) compared to base (4176007).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8985      +/-   ##
==========================================
- Coverage   93.08%   93.08%   -0.01%     
==========================================
  Files         455      455              
  Lines       36695    36705      +10     
  Branches     5300     5300              
==========================================
+ Hits        34158    34167       +9     
- Misses       2020     2021       +1     
  Partials      517      517              
Impacted Files Coverage Δ
dvc/logger.py 87.80% <100.00%> (+5.50%) ⬆️
dvc/repo/experiments/queue/celery.py 85.87% <0.00%> (-1.86%) ⬇️
dvc/proc/manager.py 75.26% <0.00%> (-1.08%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@skshetry
Copy link
Member Author

skshetry commented Feb 9, 2023

Need to test this on google colab and jupyter notebook.

@skshetry
Copy link
Member Author

skshetry commented Feb 9, 2023

Okay, this looks good. Tested on jupyter, and it works. The output won't be colored, as isatty() returns false there (it was colored before because colorama never worked for the output to be stripped).

@skshetry skshetry changed the title [WIP] logging: change from dictConfig to equivalent code for creating logge… [WIP] logging: change from dictConfig to equivalent code for creating logge… (#8985 Feb 9, 2023
@skshetry skshetry merged commit f104367 into iterative:main Feb 9, 2023
@skshetry skshetry deleted the logging-config branch February 9, 2023 03:49
@skshetry skshetry changed the title [WIP] logging: change from dictConfig to equivalent code for creating logge… (#8985 logging: change from dictConfig to equivalent code for creating logge… (#8985 Feb 9, 2023
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