You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we support minimal logging. If udf calls println!, it is logged with log level log and this could or could not show up on the client depending on the setting of client_min_messages.
CREATE OR REPLACE FUNCTION logging() RETURNS INTEGER
IMMUTABLE STRICT
LANGUAGE PLRUST AS
$$
println!("print");
eprintln!("eprint");
Ok(Some(0))
$$;
postgres=# select logging();
LOG: print
WARNING: eprint
logging
---------
0
(1 row)
postgres=#
postgres=# set client_min_messages = 'debug1';
SET
postgres=# select logging();
LOG: print
WARNING: eprint
logging
---------
0
(1 row)
We can consider adding enhancement to support for logging at different levels
Currently we support minimal logging. If udf calls
println!
, it is logged with log levellog
and this could or could not show up on the client depending on the setting of client_min_messages.We can consider adding enhancement to support for logging at different levels
The text was updated successfully, but these errors were encountered: