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

Logging could be better for very large projects #335

Open
NickHeiner opened this issue Jul 25, 2019 · 3 comments
Open

Logging could be better for very large projects #335

NickHeiner opened this issue Jul 25, 2019 · 3 comments

Comments

@NickHeiner
Copy link

I have a project with thousands of files. When I run a codemod across all of them, the terminal output looks like this:

image

When the entire terminal screen is filled with the same Sending 50 files to free worker... message, I can't tell if new lines are being created or not, because they're all the same.

Potential solution: prefix each line with a counter. Or add some other information that will change on each log line:

[0] Sending 50 files to free worker...
[1] Sending 50 files to free worker...
[2] Sending 50 files to free worker...

or

Sending 50 files to free worker... (8000 remaining)
Sending 50 files to free worker... (7950 remaining)
Sending 50 files to free worker... (7900 remaining)
@sibelius
Copy link
Contributor

I think verbose=0 should also remove this log

@ElonVolo
Copy link
Collaborator

Is the repository with the thousands of files an open source project (so I can see the error in action) or is it something private?

@NickHeiner
Copy link
Author

NickHeiner commented May 26, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants