-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Only RAISE INFO/WARNING show in the PostgREST logs #3619
Comments
This is kind of an odd test-case, I think. The second |
Right, my mistake. Using: create function raise_blah() returns void
language plpgsql
as $$
begin
raise INFO 'Blah-1';
raise DEBUG 'Blah-3';
raise LOG 'Blah-4';
raise NOTICE 'Blah-5';
raise WARNING 'Blah-6';
raise 'Blah-2';
end
$$;
alter role postgrest_test_authenticator set client_min_messages to DEBUG5; $ curl localhost:3000/rpc/raise_blah
{"code":"P0001","details":null,"hint":null,"message":"Blah-2"} I get:
Something is always setting |
Seems to happen here: |
Problem
Doing:
Results in this:
It doesn't matter if
client_min_messages
is set:alter role postgrest_test_authenticator set client_min_messages to WARNING;
Because:
All of this PostgREST behavior is undocumented.
Solution
Document it.
Notes
The text was updated successfully, but these errors were encountered: