[dovecot-cvs] dovecot/src/auth main.c,1.10,1.11

cras at procontrol.fi cras at procontrol.fi
Fri Dec 20 03:47:13 EET 2002


Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv30006/src/auth

Modified Files:
	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: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- main.c	19 Dec 2002 23:56:23 -0000	1.10
+++ main.c	20 Dec 2002 01:47:11 -0000	1.11
@@ -45,8 +45,12 @@
 	else {
 		/* log to file or stderr */
 		i_set_failure_file(getenv("IMAP_LOGFILE"), "imap-auth");
-		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)




More information about the dovecot-cvs mailing list