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

Misleading "Starting PostgREST.." logs on schema cache reloading #3149

Closed
steve-chavez opened this issue Jan 10, 2024 · 0 comments · Fixed by #3150
Closed

Misleading "Starting PostgREST.." logs on schema cache reloading #3149

steve-chavez opened this issue Jan 10, 2024 · 0 comments · Fixed by #3150
Labels
bug logging messages user-facing error/informative messages

Comments

@steve-chavez
Copy link
Member

Problem

Each time NOTIFY pgrst is done, we log:

09/Jan/2024:18:45:56 -0500: Starting PostgREST 11.2.0 (96ca177)...
09/Jan/2024:18:45:56 -0500: Attempting to connect to the database...
09/Jan/2024:18:45:56 -0500: Connection successful
09/Jan/2024:18:45:56 -0500: Config reloaded
09/Jan/2024:18:45:56 -0500: Schema cache loaded

The Starting PostgREST.. is misleading, as we're already started. It leads to believe the systemd service has restarted multiple times.

Solution

Only log "Starting PostgREST" at startup not during reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug logging messages user-facing error/informative messages
Development

Successfully merging a pull request may close this issue.

1 participant