mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Replace perror with custom postgres logging
perror() is not used in postgres anymore out of policy, this replaces the final callsites with the custom postgres logging framework. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/89B00F63-40F7-4D82-8353-DC9CABBAC1D1@yesql.se
This commit is contained in:
parent
f07a20c8a3
commit
6929e133b3
@ -378,7 +378,8 @@ pipe_read_line(char *cmd)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
if ((pipe_cmd = popen(cmd, "r")) == NULL)
|
if ((pipe_cmd = popen(cmd, "r")) == NULL)
|
||||||
{
|
{
|
||||||
perror("popen failure");
|
log_error(errcode(ERRCODE_SYSTEM_ERROR),
|
||||||
|
_("could not execute command \"%s\": %m"), cmd);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user