mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-04 15:51:29 +02:00
Fix error decoding
This commit is contained in:
parent
a04361abdd
commit
a806c65b5a
@ -83,7 +83,7 @@ static void kill_child(void)
|
||||
static void print_message(char const* buf)
|
||||
{
|
||||
char const* const severity[] = {"VERBOSE", "LOG", "INFO", "NOTICE", "WARNING", "FATAL", "ERROR", ""};
|
||||
size_t i;
|
||||
int i;
|
||||
for (i = 0; strncmp(buf, severity[i], strlen(severity[i])) != 0; i++);
|
||||
if (i + VERBOSE > ERROR) {
|
||||
elog(LOG, "%s", buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user