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

Provide a --debug flag #295

Closed
phihag opened this issue Feb 26, 2012 · 7 comments
Closed

Provide a --debug flag #295

phihag opened this issue Feb 26, 2012 · 7 comments
Labels

Comments

@phihag
Copy link
Contributor

@phihag phihag commented Feb 26, 2012

We should include a --debug flag that determines and prints additional information for bug reports. The report should include:

  • IPv4 and IPv6 address
  • Proxy settings
  • youtube-dl version
  • Python version and implementation
  • OS version and architecture
  • Whether lxml is available or not
@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Dec 12, 2012

Actually, --version ATM is more --debug (still incomplete...)

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 19, 2013

Do you think switching to Python's built-in module logging is a good idea?
It would make easier to log debug messages anywhere in the code.

@phihag
Copy link
Contributor Author

@phihag phihag commented Apr 19, 2013

The idea I had here is to retrieve better error reports, so this would only affect on startup. I'm unsure about the logging module, since that's - at least in my experience - where traces go to die. I'd rather have messages as one stream of messages with types so external applications can easily consume them.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 19, 2013

Ok, but logging makes easy to turn on the debug messages, you can log to file-like objects (http://docs.python.org/2.6/library/logging.html#stream-handler) or customize the messages template.

@kenorb
Copy link

@kenorb kenorb commented Jul 15, 2013

+1

@ocisly
Copy link
Contributor

@ocisly ocisly commented May 19, 2014

@phihag Can this be closed now that there is a --verbose flag or is this different?

@phihag
Copy link
Contributor Author

@phihag phihag commented May 19, 2014

@codesparkle Yes, although it may be a good idea to add a further flag to output IP addresses, since we can detect LAN/ISP/national censorship (which often causes users to file issues) that way.

@phihag phihag closed this May 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.