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

No stdout output #3879

Open
Infiziert90 opened this issue Jan 25, 2025 · 1 comment
Open

No stdout output #3879

Infiziert90 opened this issue Jan 25, 2025 · 1 comment
Labels
docs Only related to documentation

Comments

@Infiziert90
Copy link

Infiziert90 commented Jan 25, 2025

Environment

  • PostgreSQL version: 15.10 (Debian)
  • PostgREST version: postgrest-v12.2.5-linux-static-x86-64
  • Operating system: Debian

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:

$ 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

Example request made:
curl -X POST http://[REDACTED]:3000/Something -H "Content-Type: application/json" -d @test.json
Response:
201 Created

@Infiziert90
Copy link
Author

Default log-level is "error", so no stdout will be written.
This should definitely be mentioned in the doc about Logging

@wolfgangwalther wolfgangwalther added the docs Only related to documentation label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Only related to documentation
Development

No branches or pull requests

2 participants