Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Verbose (And Extra Verbose) Logging levels during Indexing #365

Closed
cwgreene opened this issue Nov 19, 2014 · 2 comments
Closed

Verbose (And Extra Verbose) Logging levels during Indexing #365

cwgreene opened this issue Nov 19, 2014 · 2 comments
Labels
ARCHIVED CLOSED at time of archiving

Comments

@cwgreene
Copy link
Contributor

Indexing can take a very long time. A progress bar would be useful, and a full file list is essential for debugging errors that can occur when dxr is put into a production environment.

@cwgreene
Copy link
Contributor Author

We've got a number of situations where we're using simple "print" statements, as opposed to a logger object. Would a good way to implement this feature be switching to using a logger which can then be configured with the command line arguments?

@erikrose
Copy link
Contributor

Right you are! First, yes, the print statements have to die. They were intended just for development but have survived until now. With the inversion of control in place on the "es" branch, DXR itself (rather than its plugins) now controls the looping over files, so we can draw a meaningful progress bar. What do you think of something like I did on https://pypi.python.org/pypi/nose-progressive/? There's a progress bar at the bottom right, a running readout of the current file being worked on on the bottom left, and a scrolling window of errors above. Obviously, when not outputting to a terminal, we wouldn't draw the progress bar. The library behind it, https://pypi.python.org/pypi/blessings/, provides an easy way to take care of that. What do you think?

@cknowles-admin cknowles-admin added the ARCHIVED CLOSED at time of archiving label Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED CLOSED at time of archiving
Projects
None yet
Development

No branches or pull requests

3 participants