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

getting postgres statemetn logging #92

Closed
anewton1998 opened this issue Nov 7, 2018 · 2 comments
Closed

getting postgres statemetn logging #92

anewton1998 opened this issue Nov 7, 2018 · 2 comments

Comments

@anewton1998
Copy link

I'm not sure what I am doing wrong, but I'm trying to log SQL statements to stderr so I can see them during testing. However, nothing seems to work.

This is what I have:

            pg = EmbeddedPostgres
                    .builder()
                    .setServerConfig( "log-connections", "true" )
                    .setServerConfig( "log-statement", "all" )
                    .setServerConfig( "log_min_duration_statement", "0" )
                    .setServerConfig( "log_destination", "stderr" )
                    .setServerConfig( "logging_collector", "on" )
                    .start()
@mikebell90
Copy link
Contributor

Duplicate of #78 ? Which has a PR, but we've not had time to test it. If you get a chance to run it and try, please let us know.

If I've misidentified as dupe, please reopen!

@anewton1998
Copy link
Author

This does seem like a duplicate of #78

I tested PR #83 and it does print more at the initdb time, however any sql statements executed during testing still do not log.

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