mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
Fix log message redirection
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ static void print_message(char const* buf)
|
||||
char const* const severity[] = {"VERBOSE", "LOG", "INFO", "NOTICE", "WARNING", "FATAL", "ERROR", ""};
|
||||
size_t i;
|
||||
for (i = 0; strncmp(buf, severity[i], strlen(severity[i])) != 0; i++);
|
||||
elog(i+VERBOSE, "%s", buf + strlen(severity[i]) + 2);
|
||||
elog(i+VERBOSE > ERROR ? LOG : i + VERBOSE, "%s", buf + strlen(severity[i]) + 2);
|
||||
}
|
||||
|
||||
static void* error_reader_proc(void* arg)
|
||||
|
||||
Reference in New Issue
Block a user