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

Better logging? #1

Open
bnolan opened this issue Mar 4, 2018 · 2 comments
Open

Better logging? #1

bnolan opened this issue Mar 4, 2018 · 2 comments

Comments

@bnolan
Copy link

bnolan commented Mar 4, 2018

Would it be possible to get some better logging when running the migration?

psql:db/migrations.sql:60: NOTICE:  relation "applied_migrations" already exists, skipping
 apply_migration 
-----------------
 f
(1 row)

Maybe we could suppress the NOTICE and instead log out:

skipping migration abc
running migration xyz
running migration wuv

And maybe even print out the run time of each migration? 😲

ps: Awesome tool, really loving it.

@purcell
Copy link
Owner

purcell commented Mar 6, 2018

Yeah, I'd like that too! Will see what I can do.

@purcell
Copy link
Owner

purcell commented Mar 6, 2018

This is partly done in a8e5420, but the RAISE NOTICE output is kinda ugly, and so I'm only printing out the applied migrations, not the skipped ones.

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

2 participants