Use lowercase "package name" for syslog logging again
This is how ngIRCd up to release 19.2 behaved; "bug" introduced by commit 67e882, "configure.in: require autoconf 2.67 and automake 1.11", which changed the "PACKAGE_NAME" to "ngIRCd"; so use "PACKAGE" which still is the lowercase version for initializing syslog logging.
This commit is contained in:
parent
8ff153d7d4
commit
b18e81b631
|
@ -80,9 +80,9 @@ Log_Init(bool Daemon_Mode)
|
||||||
#define LOG_CONS 0
|
#define LOG_CONS 0
|
||||||
#endif
|
#endif
|
||||||
#ifdef LOG_DAEMON
|
#ifdef LOG_DAEMON
|
||||||
openlog(PACKAGE_NAME, LOG_CONS|LOG_PID, LOG_DAEMON);
|
openlog(PACKAGE, LOG_CONS|LOG_PID, LOG_DAEMON);
|
||||||
#else
|
#else
|
||||||
openlog(PACKAGE_NAME, LOG_CONS|LOG_PID, 0);
|
openlog(PACKAGE, LOG_CONS|LOG_PID, 0);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
} /* Log_Init */
|
} /* Log_Init */
|
||||||
|
@ -99,7 +99,7 @@ Log_ReInit(void)
|
||||||
#define LOG_CONS 0
|
#define LOG_CONS 0
|
||||||
#endif
|
#endif
|
||||||
closelog();
|
closelog();
|
||||||
openlog(PACKAGE_NAME, LOG_CONS|LOG_PID, Conf_SyslogFacility);
|
openlog(PACKAGE, LOG_CONS|LOG_PID, Conf_SyslogFacility);
|
||||||
#endif
|
#endif
|
||||||
Log(LOG_NOTICE, "%s started.", NGIRCd_Version);
|
Log(LOG_NOTICE, "%s started.", NGIRCd_Version);
|
||||||
Log(LOG_INFO, "Using configuration file \"%s\" ...", NGIRCd_ConfFile);
|
Log(LOG_INFO, "Using configuration file \"%s\" ...", NGIRCd_ConfFile);
|
||||||
|
@ -218,7 +218,7 @@ GLOBAL void
|
||||||
Log_Init_Subprocess(char UNUSED *Name)
|
Log_Init_Subprocess(char UNUSED *Name)
|
||||||
{
|
{
|
||||||
#ifdef SYSLOG
|
#ifdef SYSLOG
|
||||||
openlog(PACKAGE_NAME, LOG_CONS|LOG_PID, Conf_SyslogFacility);
|
openlog(PACKAGE, LOG_CONS|LOG_PID, Conf_SyslogFacility);
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
Log_Subprocess(LOG_DEBUG, "%s sub-process starting, PID %ld.",
|
Log_Subprocess(LOG_DEBUG, "%s sub-process starting, PID %ld.",
|
||||||
|
|
Loading…
Reference in New Issue