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

Do the basic configuration of the builtin logging module #1035

Merged

Conversation

vphilippon
Copy link
Member

@vphilippon vphilippon commented Jan 21, 2020

Fixes #292

In a normal use case, pip would take care of configuring the logging
module as intended. But due to our intrusive import of pip internals,
that part wasn't properly done.

I think this is a trivial change that we can skip tests for.

Changelog-friendly one-liner: Fix the No handlers could be found for logger "pip.*" error by configuring the builtin logging module.

Contributor checklist
  • Provided the tests for the changes.
  • Gave a clear one-line description in the PR (that the maintainers can add to CHANGELOG.md on release).
  • Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

@vphilippon vphilippon requested a review from atugushev January 21, 2020 17:00
@vphilippon vphilippon added bug fix logging Related to log or console output labels Jan 21, 2020
@vphilippon vphilippon added this to the 4.4.1 milestone Jan 21, 2020
Fixes jazzband#292
In a normal use case, `pip` would take care of configuring the logging
module as intended. But due to our intrusive import of pip internals,
that part wasn't properly done.
@vphilippon vphilippon force-pushed the configure-builtin-logging-module branch from 68a3325 to cde47c0 Compare January 21, 2020 17:06
@codecov
Copy link

codecov bot commented Jan 21, 2020

Codecov Report

Merging #1035 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1035      +/-   ##
==========================================
- Coverage   99.33%   99.29%   -0.05%     
==========================================
  Files          34       34              
  Lines        2397     2399       +2     
  Branches      306      306              
==========================================
+ Hits         2381     2382       +1     
  Misses          8        8              
- Partials        8        9       +1
Impacted Files Coverage Δ
piptools/logging.py 100% <100%> (ø) ⬆️
piptools/repositories/pypi.py 95.12% <0%> (-0.49%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 814c838...cde47c0. Read the comment docs.

Copy link
Member

@atugushev atugushev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@vphilippon vphilippon merged commit 8e8312d into jazzband:master Jan 22, 2020
@vphilippon vphilippon deleted the configure-builtin-logging-module branch January 22, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logging Related to log or console output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No handlers could be found for logger "pip.vcs.git"
2 participants