[dovecot-cvs] dovecot/src/pop3 main.c,1.33,1.34
cras at dovecot.org
cras at dovecot.org
Fri Dec 2 14:53:34 EET 2005
- Previous message: [dovecot-cvs] dovecot/src/master Makefile.am, 1.15, 1.16 main.c,
1.66, 1.67 master-settings.c, 1.93, 1.94 master-settings.h,
1.61, 1.62
- Next message: [dovecot-cvs] dovecot/src/master syslog-util.c, NONE,
1.1 syslog-util.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv7925/src/pop3
Modified Files:
main.c
Log Message:
Added syslog_facility setting to config file.
Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/main.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- main.c 20 Nov 2005 17:15:51 -0000 1.33
+++ main.c 2 Dec 2005 12:53:31 -0000 1.34
@@ -119,9 +119,11 @@
}
i_snprintf(log_prefix, sizeof(log_prefix), "pop3(%s)", user);
- if (getenv("USE_SYSLOG") != NULL)
- i_set_failure_syslog(log_prefix, LOG_NDELAY, LOG_MAIL);
- else {
+ if (getenv("USE_SYSLOG") != NULL) {
+ const char *env = getenv("SYSLOG_FACILITY");
+ i_set_failure_syslog(log_prefix, LOG_NDELAY,
+ env == NULL ? LOG_MAIL : atoi(env));
+ } else {
/* log to file or stderr */
i_set_failure_file(getenv("LOGFILE"), log_prefix);
}
- Previous message: [dovecot-cvs] dovecot/src/master Makefile.am, 1.15, 1.16 main.c,
1.66, 1.67 master-settings.c, 1.93, 1.94 master-settings.h,
1.61, 1.62
- Next message: [dovecot-cvs] dovecot/src/master syslog-util.c, NONE,
1.1 syslog-util.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list