mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Add syslog_split_messages parameter
Reviewed-by: Andreas Karlsson <andreas@proxel.se>
This commit is contained in:
@@ -107,6 +107,7 @@ char *Log_line_prefix = NULL; /* format for extra log line info */
|
||||
int Log_destination = LOG_DESTINATION_STDERR;
|
||||
char *Log_destination_string = NULL;
|
||||
bool syslog_sequence_numbers = true;
|
||||
bool syslog_split_messages = true;
|
||||
|
||||
#ifdef HAVE_SYSLOG
|
||||
|
||||
@@ -1966,7 +1967,7 @@ write_syslog(int level, const char *line)
|
||||
*/
|
||||
len = strlen(line);
|
||||
nlpos = strchr(line, '\n');
|
||||
if (len > PG_SYSLOG_LIMIT || nlpos != NULL)
|
||||
if (syslog_split_messages && (len > PG_SYSLOG_LIMIT || nlpos != NULL))
|
||||
{
|
||||
int chunk_nr = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user