[dovecot-cvs] dovecot: When using --log-error, log also a warning and an error.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 12 16:37:33 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/b929827ddbe9
changeset: 5696:b929827ddbe9
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 12 16:37:26 2007 +0300
description:
When using --log-error, log also a warning and an error.

diffstat:

1 file changed, 5 insertions(+), 2 deletions(-)
src/master/main.c |    7 +++++--

diffs (17 lines):

diff -r 54c7e74ec973 -r b929827ddbe9 src/master/main.c
--- a/src/master/main.c	Tue Jun 12 14:54:04 2007 +0300
+++ b/src/master/main.c	Tue Jun 12 16:37:26 2007 +0300
@@ -601,8 +601,11 @@ static void main_init(bool log_error)
 
 	log_init();
 
-	if (log_error)
-		i_fatal("This is Dovecot's error log");
+	if (log_error) {
+		i_warning("This is Dovecot's warning log");
+		i_error("This is Dovecot's error log");
+		i_fatal("This is Dovecot's fatal log");
+	}
 
 #ifdef HAVE_LIBCAP
 	/* drop capabilities that we don't need, be very restrictive. */


More information about the dovecot-cvs mailing list