Skip to content

Pip lies about log location #350

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

Closed
cls opened this issue Aug 31, 2011 · 4 comments
Closed

Pip lies about log location #350

cls opened this issue Aug 31, 2011 · 4 comments
Assignees
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior

Comments

@cls
Copy link

cls commented Aug 31, 2011

When using the --log option, Pip saves to the right location, but claims the log is being written to ~/.pip/pip.log, which it isn't. (The undocumented --log-file option does nothing either.)

Pip then throws an exception, but that's issue #219.

@embray
Copy link
Contributor

embray commented Sep 2, 2011

I don't know why there's a --log and a separate --log-file. When pip prints "Storing complete log to..." it uses the value specified by --log-file which defaults to ~/.pip/pip.log. If a different primary log is specified with --log, the default value for --log-file is not updated.

It seems to me that this is all more confusing than it needs to be. Just make --log-file an alias for --log.

mihneadb added a commit to mihneadb/pip that referenced this issue Jun 16, 2012
@mihneadb
Copy link

I did what @iguananaut said in the 2nd commit of my pull request [1]. The issue of writing to the closed log file is still present.

[1] #580

@ghost ghost assigned hltbra Apr 19, 2013
hltbra added a commit to hltbra/pip that referenced this issue Apr 28, 2013
…erge_options()

Issue pypa#70: install --timeout ignored and
Issue pypa#350: Pip lies about log location
@qwcode
Copy link
Contributor

qwcode commented Sep 18, 2013

closing as --log and --log-file technically work now, but note:

@qwcode qwcode closed this as completed Sep 18, 2013
@qwcode
Copy link
Contributor

qwcode commented Sep 19, 2013

for anyone who comes to this, let me reply specifically to some of the original description:

When using the --log option, Pip saves to the right location, but claims the log is being written to ~/.pip/pip.log

regardless of using --log, when pip has errors it logs the last session to the default for the hidden option --log-file (~/.pip/pip.log on unix), and prints the message "Storing complete log in /home/qwcode/.pip/pip.log"

So in the case of using --log with an error, you'll see this message, and run into bug #219 (which is a failure to write to the value for --log-file). so, pip is not lying. granted, it's confusing, but clearing that up is #915.

The undocumented --log-file option does nothing either.

It does work, but currently only logs to that when there's problems, and it's not append.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

5 participants