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

pip --log does not log maximum verbosity to file #3351

Closed
odyssey4me opened this Issue Jan 11, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@odyssey4me

odyssey4me commented Jan 11, 2016

According to https://pip.pypa.io/en/stable/reference/pip/#file-logging the configured log file should contain the maximum verbosity. The logging to the screen should be as verbose as is set per the CLI or configuration file. This does not appear to work when executing pip wheel ...

eg log file with --verbose used on the CLI

Collecting alembic<=0.8.3 (from -c requirements.txt (line 20))
  Getting page https://repo.example.com/pools/alembic/
  "GET /pools/alembic/ HTTP/1.1" 200 None
  2 location(s) to search for versions of alembic:
  * https://repo.example.com/pools/alembic/
  * https://pypi.python.org/simple/alembic/
  Getting page https://repo.example.com/pools/alembic/
  "GET /pools/alembic/ HTTP/1.1" 200 None
  Analyzing links from page https://repo.example.com/pools/alembic/
    Found link https://repo.example.com/pools/alembic/alembic-0.6.3-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.6.3
    Found link https://repo.example.com/pools/alembic/alembic-0.7.4-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.7.4
    Found link https://repo.example.com/pools/alembic/alembic-0.7.5.post2-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.7.5.post2
    Found link https://repo.example.com/pools/alembic/alembic-0.7.6-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.7.6
    Found link https://repo.example.com/pools/alembic/alembic-0.7.7-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.7.7
    Found link https://repo.example.com/pools/alembic/alembic-0.8.0-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.8.0
    Found link https://repo.example.com/pools/alembic/alembic-0.8.2-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.8.2
    Found link https://repo.example.com/pools/alembic/alembic-0.8.3-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/), version: 0.8.3
  Getting page https://pypi.python.org/simple/alembic/
  "GET /simple/alembic/ HTTP/1.1" 200 1192
  Analyzing links from page https://pypi.python.org/simple/alembic/
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.1.0.tar.gz#md5=40f8202579a53c67bea51714252a43ce (from https://pypi.python.org/simple/alembic/), version: 0.1.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.1.1.tar.gz#md5=7f8523ac0bdcbce35c1ecea09b050b80 (from https://pypi.python.org/simple/alembic/), version: 0.1.1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.2.0.tar.gz#md5=49b2402bab3c353c71d16816a63812f6 (from https://pypi.python.org/simple/alembic/), version: 0.2.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.2.1.tar.gz#md5=7922c6b081a3987f9dff3b110814eddc (from https://pypi.python.org/simple/alembic/), version: 0.2.1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.2.2.tar.gz#md5=f2e49d35b21e8b59754569202ea4d617 (from https://pypi.python.org/simple/alembic/), version: 0.2.2
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.3.0.tar.gz#md5=0c15b86ae2d6cdac4fbb633b041bc460 (from https://pypi.python.org/simple/alembic/), version: 0.3.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.3.1.tar.gz#md5=8083b795c2e573a50270acff8b2c8ae5 (from https://pypi.python.org/simple/alembic/), version: 0.3.1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.3.2.tar.gz#md5=b1ebec5dd5f28277f0898cd191d0e693 (from https://pypi.python.org/simple/alembic/), version: 0.3.2
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.3.4.tar.gz#md5=4b5b13025c9c8a4e4c9d2efb61b21959 (from https://pypi.python.org/simple/alembic/), version: 0.3.4
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.3.5.tar.gz#md5=142ccd8dbaea0ae4efe964cfe477b794 (from https://pypi.python.org/simple/alembic/), version: 0.3.5
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.3.6.tar.gz#md5=bdc9a79c623106989de332042caf4bab (from https://pypi.python.org/simple/alembic/), version: 0.3.6
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.4.0.tar.gz#md5=76beb62da469391ae9e03d29ccb05956 (from https://pypi.python.org/simple/alembic/), version: 0.4.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.4.1.tar.gz#md5=fefc6edcc93820d53f282639ffe67615 (from https://pypi.python.org/simple/alembic/), version: 0.4.1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.4.2.tar.gz#md5=c64b9e8928e13df0b68fb6207ba45675 (from https://pypi.python.org/simple/alembic/), version: 0.4.2
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.5.0.tar.gz#md5=e22d10fd885473eccc9c8c75238e97ce (from https://pypi.python.org/simple/alembic/), version: 0.5.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.0.tar.gz#md5=084fe81b48ebae43b0f6031af68a03d6 (from https://pypi.python.org/simple/alembic/), version: 0.6.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.1.tar.gz#md5=ee6bfa89f55395ae5bf2e1dc44b08703 (from https://pypi.python.org/simple/alembic/), version: 0.6.1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.2.tar.gz#md5=7cc7ffe6ade6fe7daa5bcab3d5dc8013 (from https://pypi.python.org/simple/alembic/), version: 0.6.2
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.3.tar.gz#md5=4de9d0eac258d1ffe67895cedc0e0fd6 (from https://pypi.python.org/simple/alembic/), version: 0.6.3
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.4.tar.gz#md5=4d18cf648b360283d807715db28065c9 (from https://pypi.python.org/simple/alembic/), version: 0.6.4
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.5.tar.gz#md5=e111305ec618cace2431342cb87ba8d7 (from https://pypi.python.org/simple/alembic/), version: 0.6.5
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.6.tar.gz#md5=71e4a8f6849e1527abfc4ea33d51f37c (from https://pypi.python.org/simple/alembic/), version: 0.6.6
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.6.7.tar.gz#md5=3beaa1a95aad17a4fbb3b4a0d5684f28 (from https://pypi.python.org/simple/alembic/), version: 0.6.7
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.0.tar.gz#md5=3074424dabeab04d13eb2ef1ac3f3e1e (from https://pypi.python.org/simple/alembic/), version: 0.7.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.1.tar.gz#md5=366b037ca1c5b7e23a5ef8fd536c350a (from https://pypi.python.org/simple/alembic/), version: 0.7.1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.2.tar.gz#md5=d91f15222f4ec5dbb81f785cb745a7bd (from https://pypi.python.org/simple/alembic/), version: 0.7.2
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.3.tar.gz#md5=40cf500b6c4bde6ed571769c073e8311 (from https://pypi.python.org/simple/alembic/), version: 0.7.3
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.4.tar.gz#md5=69770193eb514fb024f188406f6579b8 (from https://pypi.python.org/simple/alembic/), version: 0.7.4
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.5.post1.tar.gz#md5=0096e76338367a301ee208d7b623c3aa (from https://pypi.python.org/simple/alembic/), version: 0.7.5.post1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.5.post2.tar.gz#md5=1814563f5042b28c5c452f2faa895d8e (from https://pypi.python.org/simple/alembic/), version: 0.7.5.post2
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.6.tar.gz#md5=99b539f8bb8780047bf90a5951ac5e0e (from https://pypi.python.org/simple/alembic/), version: 0.7.6
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.7.7.tar.gz#md5=8bd77f40857100da2cdcb6f5da9a7f1c (from https://pypi.python.org/simple/alembic/), version: 0.7.7
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.8.0.tar.gz#md5=c0db57444de40e404d39ee34e47ab040 (from https://pypi.python.org/simple/alembic/), version: 0.8.0
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.8.1.tar.gz#md5=3259aa43688ea7b9b05a0718754d1e7a (from https://pypi.python.org/simple/alembic/), version: 0.8.1
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.8.2.tar.gz#md5=d8404efb048d282a617ca167fa2275ce (from https://pypi.python.org/simple/alembic/), version: 0.8.2
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.8.3.tar.gz#md5=2e4ef17675316af9f09d749b0aee390e (from https://pypi.python.org/simple/alembic/), version: 0.8.3
    Found link https://pypi.python.org/packages/source/a/alembic/alembic-0.8.4.tar.gz#md5=5f95d8ee62b443f9b37eb5bee76c582d (from https://pypi.python.org/simple/alembic/), version: 0.8.4
  Using version 0.8.3 (newest of versions: 0.8.3, 0.8.3, 0.8.2, 0.8.2, 0.8.1, 0.8.0, 0.8.0, 0.7.7, 0.7.7, 0.7.6, 0.7.6, 0.7.5.post2, 0.7.5.post2, 0.7.5.post1, 0.7.4, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.7, 0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.0, 0.4.2, 0.4.1, 0.4.0, 0.3.6, 0.3.5, 0.3.4, 0.3.2, 0.3.1, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.1, 0.1.0)
  "GET /pools/alembic/alembic-0.8.3-py2.py3-none-any.whl HTTP/1.1" 200 144010
  Downloading https://repo.example.com/pools/alembic/alembic-0.8.3-py2.py3-none-any.whl (144kB)
  Downloading from URL https://repo.example.com/pools/alembic/alembic-0.8.3-py2.py3-none-any.whl (from https://repo.example.com/pools/alembic/)
  Saved /tmp/wheel-output/alembic-0.8.3-py2.py3-none-any.whl

eg of log file without verbose specified on the CLI:

Collecting alembic<=0.8.3 (from -c requirements.txt (line 20))
  Downloading https://repo.example.com/pools/alembic/alembic-0.8.3-py2.py3-none-any.whl (144kB)
  Saved /tmp/wheel-output/alembic-0.8.3-py2.py3-none-any.whl

The stdout output is exactly the same as that sent to the log file.

ianw added a commit to ianw/pip that referenced this issue Mar 24, 2016

Root logger should use debug level
We want the root logger to always output debug level logs, and then
the handlers filter out to their appropriate level.

This restores the intended behaviour of "--log" argument, which is
supposed to output verbose logs to a file even without the "--verbose"
argument.

It seems like "complete command output" is a debug level thing in
utils/__init__.py -- some of the functional tests grep for this
output.  So invert this check.

Closes: pypa#3351

ianw added a commit to ianw/pip that referenced this issue Mar 24, 2016

Root logger should use debug level for "--log"
We want the root logger to output debug level logs when we have
specified "--log".  The log-file handler then sends this to our file,
and the other handlers (console) filter out at their appropriate
level.

This restores the intended behaviour of "--log" argument, which is
supposed to output verbose logs to a file always.

A test-case is added

Closes: pypa#3351

ianw added a commit to ianw/pip that referenced this issue Mar 24, 2016

Root logger should use debug level for "--log"
We want the root logger to output debug level logs when we have
specified "--log".  The log-file handler then sends this to our file,
and the other handlers (console) filter out at their appropriate
level.

This restores the intended behaviour of "--log" argument, which is
supposed to output verbose logs to a file always.

A test-case is added

Closes: pypa#3351

ianw added a commit to ianw/pip that referenced this issue Mar 24, 2016

Root logger should use debug level for "--log"
We want the root logger to output debug level logs when we have
specified "--log".  The log-file handler then sends this to our file,
and the other handlers (console) filter out at their appropriate
level.

This restores the intended behaviour of "--log" argument, which is
supposed to output verbose logs to a file always.

A test-case is added

Closes: pypa#3351

dstufft added a commit that referenced this issue May 10, 2016

Root logger should use debug level for "--log" (#3586)
We want the root logger to output debug level logs when we have
specified "--log".  The log-file handler then sends this to our file,
and the other handlers (console) filter out at their appropriate
level.

This restores the intended behaviour of "--log" argument, which is
supposed to output verbose logs to a file always.

A test-case is added

Closes: #3351

waisbrot pushed a commit to waisbrot/pip that referenced this issue Jul 5, 2016

Root logger should use debug level for "--log" (pypa#3586)
We want the root logger to output debug level logs when we have
specified "--log".  The log-file handler then sends this to our file,
and the other handlers (console) filter out at their appropriate
level.

This restores the intended behaviour of "--log" argument, which is
supposed to output verbose logs to a file always.

A test-case is added

Closes: pypa#3351
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment