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

Feature request: Logging of what migration ran and when #53

Open
ghost opened this issue Jan 6, 2016 · 3 comments
Open

Feature request: Logging of what migration ran and when #53

ghost opened this issue Jan 6, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 6, 2016

Currently, the migrations collection only keeps track of the current migration and whether or not control is locked. While this is helpful information, it'd be great if there was an option for the package to insert a document in the collection that stored what migration ran, when it ran, if it was successful, and which direction it was run. It may be something that is disabled by default and enabled with a configuration option.

@ghost
Copy link
Author

ghost commented Jan 7, 2016

I forgot to mention, I'm happy to create a pull request for this as well.

@zol
Copy link
Member

zol commented Jan 7, 2016

That would be great. Our SyncedCron package has a cronHistory collection to do something similar.

@ghost
Copy link
Author

ghost commented Jan 13, 2016

I also just thought of something to go along with this: if logging is enabled and a migration fails, since that's being logged, it'd be helpful to log the error message if possible as well. I just ran into an issue where at some point after deploying with mup, migrations locked and I'm having trouble finding it in the mup logs.

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

No branches or pull requests

1 participant