-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 request: quiet mode #993
Comments
Yes, but it still outputs "cache miss" for each package, and the header and footer are also a fair number of lines |
The other thing I am increasingly noticing now that I have 50 packages is that if there's an error in a build I usually have to scroll up a page of text to see the output of the failed build. So it would also be nice to avoid printing all the "cache hit" output in those cases. |
Maybe outputting the logs to a file would be more appropriate in these cases, with 50 packages building all at once you're never going to get good insight into what is going on, especially because the logs can also get cut off in the middle of a task. Or some other method. Maybe something similar to tmux with the windows, make a window for each task, and allow switching between the windows using arrow keys. But at that point it may be easier/a better idea to implement a vscode extension which can allow easier browsing of the logs. |
@dobesv want to double confirm, does Digging some, it looks like it was added in #822, which was merged before this issue. I just tried and it doesn't log the hash / cache miss either, unless I'm missing something. When I try it in a small repo, I don't see the log lines you're referring to:
|
I want to see the output when the task is run. I just don't want output when the task is not run. From my reading of the docs, |
I think if |
Another option is if |
I would be willing to work on this if I have some guidance in terms of what kind of PR would be accepted here, if any. |
This seems reasonable to me. An alternative is
I'll bring it up at the next core meeting and give you feedback next week, unless @vercel/turbo-oss can chime in here first for general 👍🏾 or 👎🏾 so you can start implementation. |
Seems like a good enough solution as well. |
@dobesv chatted with the team and |
I was looking at this a bit more and I realized there could be an inconsistency about when hashes will be shown or not between
Between If
This would suit my needs much better but would change the existing behavior of
Or perhaps add variants that suppress hashes on cache hit outputs:
|
This regexp will filter out all lines that don't start with
if you omit the
Or, you can match the command, the "•" character Turbo uses for the first few lines, and each line of the summary at the end
Or, for displaying all uncached logs,
|
Whatever the solution is, I would like to be able to configure quiet mode as the default, so I'm not having to type a switch with every turbo command. Could it be added to UPDATE: Never mind. I see that it is available as a configuration option. Thank you! |
The |
we need this, the output still too much when run with:
|
From the conversation here, it's sounding like |
@anthonyshew looks like |
Can you open a new issue so we can track that? Thanks! |
Describe the feature you'd like to request
Turbo has a lot of output for each build, minimum one line per package (even ones that aren't being built) plus a few lines before and after the packages. For us that's about 35 lines of output for every build, which is being run on every file change. Compare that to the webpack watcher which outputs just a few lines per change.
e.g.
Some issues with this:
I have setup nodemon to run turbo when a source file changes. I also have webpack and some other watchers running to build some other things in the same console. The turbo build output totally dominates the log output, making it hard to find any errors / status messages from those other processes.
Describe the solution you'd like
It would be nice if turbo had a
-q
/--quiet
option that would suppress some output:Describe alternatives you've considered
None
TURBO-1883
The text was updated successfully, but these errors were encountered: