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

feat: add log-level=debug #3435

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Conversation

steve-chavez
Copy link
Member

Problem

On #3213, the following log lines were added:

22/Apr/2024:16:16:20 -0500: Schema cache queried in 16.3 milliseconds
22/Apr/2024:16:16:20 -0500: Schema cache loaded 264 Relations, 221 Relationships, 142 Functions, 15 Domain Representations, 45 Media Type Handlers
22/Apr/2024:16:16:20 -0500: Schema cache loaded in 16.7 milliseconds

But the Schema cache loaded in 16.7 milliseconds line is really for debugging, the user cannot take any action for reducing that time.

Solution

Only log the above line when log-level=debug.

@steve-chavez steve-chavez changed the title chore: add log-level=debug feat: add log-level=debug Apr 23, 2024
@steve-chavez steve-chavez merged commit 3e615bd into PostgREST:main Apr 23, 2024
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant