supabase: Custom Log not working in local Development and other Bug
When I try logging inside Supabase function using raise
statement it doesn’t appear inside Postgres tab inside logging.
Reproduce Bug
Add a new say_hello
function
CREATE OR REPLACE FUNCTION say_hello()
RETURNS TEXT AS $$
BEGIN
raise log 'Hello, world!';
RETURN 'Hello, world!';
END;
$$ LANGUAGE plpgsql;
call say_hello
running query select * from say_hello();
Logging No Error Severity Bug
Once l try logging No Error
Severity getting error.
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 1
- Comments: 17 (10 by maintainers)
Hi @RyanClementsHax,
Doing various tests I noticed that the
timestamp
variable appears to be of text type and is expressed in nanoseconds, this is my solution:@Ziinc thanks for that. I’ve confirmed that this is a problem with the default queries.
By default a query like this is presented
Removing the casting fixes it.
HI @igorlanko , sorry for the slow reply, but could you share with us more about the log of the
analytics
container or thestudio
container? It will be easier to debug.