We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the docs https://docs.postgrest.org/en/v12/references/observability.html#logs stdout should log some information about connections, but for me it doesn't do so at all. stderr on the other hand is appearing as described in the docs.
Output:
$ postgrest /etc/postgrest/config 25/Jan/2025:17:25:09 +0000: Starting PostgREST 12.2.5... 25/Jan/2025:17:25:09 +0000: Listening on port 3000 25/Jan/2025:17:25:09 +0000: Listening for notifications on the "pgrst" channel 25/Jan/2025:17:25:09 +0000: Successfully connected to PostgreSQL 15.10 (Debian 15.10-0+deb12u1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 25/Jan/2025:17:25:09 +0000: Config reloaded 25/Jan/2025:17:25:09 +0000: Schema cache queried in 5.2 milliseconds 25/Jan/2025:17:25:09 +0000: Schema cache loaded 8 Relations, 0 Relationships, 0 Functions, 0 Domain Representations, 4 Media Type Handlers, 1196 Timezones 25/Jan/2025:17:25:09 +0000: Schema cache loaded in 1.0 milliseconds
Also tried 2>&1 | tee output.file to make sure my terminal wasn't just broken, but the file only contained stderr content
2>&1 | tee output.file
Example request made: curl -X POST http://[REDACTED]:3000/Something -H "Content-Type: application/json" -d @test.json Response: 201 Created
curl -X POST http://[REDACTED]:3000/Something -H "Content-Type: application/json" -d @test.json
201 Created
The text was updated successfully, but these errors were encountered:
Default log-level is "error", so no stdout will be written. This should definitely be mentioned in the doc about Logging
Sorry, something went wrong.
No branches or pull requests
Environment
Description of issue
Following the docs https://docs.postgrest.org/en/v12/references/observability.html#logs stdout should log some information about connections, but for me it doesn't do so at all. stderr on the other hand is appearing as described in the docs.
Output:
Also tried
2>&1 | tee output.file
to make sure my terminal wasn't just broken, but the file only contained stderr contentExample request made:
curl -X POST http://[REDACTED]:3000/Something -H "Content-Type: application/json" -d @test.json
Response:
201 Created
The text was updated successfully, but these errors were encountered: