-
Notifications
You must be signed in to change notification settings - Fork 491
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
Support for quiet operations #703
Comments
Absolutely. I thought that was the case already. If you use the library, you can set a disabled logger, or if using the CLI if you don't supply the verbose flag, it doesn't print anything. If that's not the case, I could see us introducing –-quiet flag or equivalent. |
To clarify, I am using the library because some of my migrations are Go-flavored. I'm not sure I understand how to disable logging that is buried like in these two examples:
Based on how the logger is initialized in Line 7 in 76946cc
Run() method
Thank you |
All of the In #383 we added a noop logger, so something like this might work:
Or, if you use |
Thank you, the approach with goose.SetLogger(goose.NopLogger()) helped. I am closing the issue. |
I run
goose
(formigrate up
) as part of thedockertest
setup, where a new container gets created and purged for every integration test.I have about 10 migrations (so far), so I see the entire list printed for every test to acknowledge successful migration.
Would it be possible to introduce an option to enable quiet operations for situations like mine?
Thank you.
The text was updated successfully, but these errors were encountered: