Skip to content

Commit

Permalink
Do the basic configuration of the builtin logging module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vphilippon committed Jan 21, 2020
1 parent 814c838 commit cde47c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions piptools/logging.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# coding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals

import logging

from . import click

# Initialise the builtin logging module for other component using it.
# Ex: pip
logging.basicConfig()


class LogContext(object):
def __init__(self, verbosity=0):
Expand Down

0 comments on commit cde47c0

Please sign in to comment.