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
[Feature] add less verbose output #816
Comments
At the moment no, but part of the code system is also designed with filtering in mind. For example something like this: messageFilter:
- YN0013 It shouldn't be a lot of work - just a configuration setting to add in |
I have one idea for you to consider about output UX. If there are many repetitive messages we can show progress indicator. But if there are say less than 5 repetitive messages, we can actually show them - imagine the situation when you want to troubleshoot one package fetching, - you might be interested in yarn decisions about it, but if there are not too many of them |
We could extend the mechanism we use for the progress bar to only show the last N lines, true. My main issue with that is that practically speaking, it'll be only really used for fetch I think. Other messages are important to show 🤔 |
Not last N lines. All lines, but if the number of lines does not exceed N, otherwise only show progress indicator. The rationale is that last N lines might be random and not interesting. So if there are too many lines show only progress indicator. If there are very few lines - show them without progress indicator. |
Guys, what's the point of showing 100500 same lines? Is it a case for yarn? Maybe use one line for text message and show the packages joined instead of one-line-per package?
|
Too complicated and why five or not ten or twenty?
|
Was #914 reverted? Or is it a regression? I'm getting around 7K of YN0013 messages using Yarn 2.1.1. |
Not reverted, and we don't have a regression as far as I'm aware. Feel free to open an issue with the relevant info (including screenshots, and potentially investigating yourself why would the logs be printed) if you believe this comes from Yarn. |
I'm observing this on CI, which does not allocate a TTY. On the local machine it works as expected and only shows 5 messages at a time. So it seems to work as expected.
|
Which CI? We have a CI mode under which only a summary is printed. Perhaps your CI isn't well detected? |
iirc docker doesn't count as a CI, try setting |
It is a Docker container which is started manually on Azure Pipelines, so it is expected that it is not detected as CI. Setting |
For anyone coming here from search, this was resolved in #1907 via logFilters |
More specifically, add this to
|
I don't like 100
YN0013
messages withcan't be found in the cache and will be fetched from the remote registry
Can it be hidden somehow by default?
The text was updated successfully, but these errors were encountered: