[dovecot-cvs] dovecot/src/login client.c,1.20,1.21 main.c,1.12,1.13
cras at procontrol.fi
cras at procontrol.fi
Fri Dec 20 03:47:13 EET 2002
- Previous message: [dovecot-cvs] dovecot/src/lib failures.c,1.8,1.9 failures.h,1.3,1.4
- Next message: [dovecot-cvs] dovecot/src/master imap-process.c,1.17,1.18 main.c,1.21,1.22 settings.c,1.32,1.33 settings.h,1.17,1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/login
In directory danu:/tmp/cvs-serv30006/src/login
Modified Files:
client.c main.c
Log Message:
Added info_log_file setting and i_info() function to write to it. Default is
the same as failure log. Currently only logged information is client logins.
Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/login/client.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- client.c 19 Dec 2002 01:02:36 -0000 1.20
+++ client.c 20 Dec 2002 01:47:11 -0000 1.21
@@ -376,7 +376,7 @@
if (host == NULL)
host = "??";
- syslog(LOG_INFO, "%s [%s]", text, host);
+ i_info("%s [%s]", text, host);
}
static void client_hash_check_idle(void *key, void *value __attr_unused__,
Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/login/main.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- main.c 19 Dec 2002 23:56:24 -0000 1.12
+++ main.c 20 Dec 2002 01:47:11 -0000 1.13
@@ -123,8 +123,12 @@
else {
/* log to file or stderr */
i_set_failure_file(getenv("IMAP_LOGFILE"), "imap-login");
- i_set_failure_timestamp_format(getenv("IMAP_LOGSTAMP"));
}
+
+ if (getenv("IMAP_INFOLOGFILE") != NULL)
+ i_set_info_file(getenv("IMAP_INFOLOGFILE"));
+
+ i_set_failure_timestamp_format(getenv("IMAP_LOGSTAMP"));
}
static void drop_privileges(void)
- Previous message: [dovecot-cvs] dovecot/src/lib failures.c,1.8,1.9 failures.h,1.3,1.4
- Next message: [dovecot-cvs] dovecot/src/master imap-process.c,1.17,1.18 main.c,1.21,1.22 settings.c,1.32,1.33 settings.h,1.17,1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list