-
Notifications
You must be signed in to change notification settings - Fork 258
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
[Improvement]: --quiet
flag for local runs
#1602
Comments
I would like to try this : ) |
I would like to have this feature too, nice idea! |
@ccmvn Feel free to attempt solving it if you want to :) |
Unfortunately I'm too busy with my own projects, but it's a cool thing and I would appreciate it if someone else from the community could implement it, because it makes the console cleaner and you don't always need the information that is displayed there |
@jonaro00 this issue is still active? Can I look into this? |
I have gone through this issue if you find my solution useful please let me know . thank you Add a -q or --quiet flag to suppress non-essential logs: In cargo-shuttle: Accept the -q / --quiet flag in the run command. Default: cargo shuttle run Quiet Mode: cargo shuttle run -q Add verbosity levels to control the amount of logging-- let log_level = if quiet { if quiet { Default Behavior---- cargo shuttle run |
@avi9prasad Those are some great ideas, thanks for moving this forward. I think we can take a much simpler approach now, as logging verbosity has decreased recently: We currently have a The As for which printouts in cargo-shuttle that could use an Feel free to try adding the RUST_LOG modification if you'd like to play around with this. |
Describe the improvement
When starting a local run, there are lots of printouts from both cargo-shuttle and the runtime's startup logic.
A
-q / --quiet
flag can be added to therun
command, that supresses non-error prints in cargo-shuttle. The flag can also be passed on as--quiet
to the runtime binary, where it can also be used to supress the lines that are usually printed (the ones that show up with[Runtime]
prepended).A solution that puts the relevant prints inside if-statements should be sufficient.
This issue is open to contribution. Comment if you want to work on it. Feel free to ask for help and guidance here or in our Discord.
The text was updated successfully, but these errors were encountered: