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

Fix error logs when the listener connects to a read replica #3588

Open
laurenceisla opened this issue Jun 12, 2024 · 0 comments
Open

Fix error logs when the listener connects to a read replica #3588

laurenceisla opened this issue Jun 12, 2024 · 0 comments
Labels

Comments

@laurenceisla
Copy link
Member

laurenceisla commented Jun 12, 2024

In the PostgREST 12.2.0 logs, when connecting to a read replica only, it shows:

12/Jun/2024:15:19:57 -0500: Failed listening for notifications on the "pgrst" channel. Just "connection to server on socket \"/run/user/1000/postgrest/postgrest-with-postgresql-16-Y3M/socket_replica_6039/.s.PGSQL.5432\" failed: session is read-only\n"
12/Jun/2024:15:19:57 -0500: Failed listening for notifications on the "pgrst" channel. ExitFailure 1

Originally posted by @laurenceisla in #3582 (comment)

The first log prints ... Just "<error_message>", it should only print ... <error_message>. And
the second log seems redundant.

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

No branches or pull requests

2 participants