1
0
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:
Konstantin Knizhnik 2019-01-25 16:26:48 +03:00
parent a04361abdd
commit a806c65b5a

View File

@ -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);