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

golang-migrate ignores PostgresSQL message reporting #1064

Open
KatarinaSimnova opened this issue Mar 28, 2024 · 0 comments
Open

golang-migrate ignores PostgresSQL message reporting #1064

KatarinaSimnova opened this issue Mar 28, 2024 · 0 comments

Comments

@KatarinaSimnova
Copy link

If I use one of these in my SQL migration file, golang-migrate ignores it. Nothing is logged.

RAISE INFO 'Print the message of information %', now() ;
RAISE LOG 'Print the message of log %', now();
RAISE DEBUG 'Print the message of debug %', now();
RAISE WARNING 'Print the message of warning %', now();
RAISE NOTICE 'Print the message of notice %', now();

RAISE EXCEPTION works.

I need to log messages without failing the whole migration. Can we do something about it?

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