mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Small polishing of syslog facility and ident settings. Only allow setting
at postmaster start, rename syslog_progid to syslog_ident, since syslog itself uses that term, fix doc markup.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.66 2000/11/13 21:35:02 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.67 2000/11/14 19:13:27 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -58,8 +58,8 @@ extern CommandDest whereToSendOutput;
|
||||
* ... in theory anyway
|
||||
*/
|
||||
int Use_syslog = 0;
|
||||
char *Syslog_facility = "LOCAL0";
|
||||
char *Syslog_progid = "postgres";
|
||||
char *Syslog_facility;
|
||||
char *Syslog_ident;
|
||||
|
||||
static void write_syslog(int level, const char *line);
|
||||
|
||||
@ -646,7 +646,7 @@ write_syslog(int level, const char *line)
|
||||
syslog_fac = LOG_LOCAL6;
|
||||
if (strcasecmp(Syslog_facility,"LOCAL7") == 0)
|
||||
syslog_fac = LOG_LOCAL7;
|
||||
openlog(Syslog_progid, LOG_PID | LOG_NDELAY, syslog_fac);
|
||||
openlog(Syslog_ident, LOG_PID | LOG_NDELAY, syslog_fac);
|
||||
openlog_done = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user