]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Moved login process verbose stuff under verbose_debug.
authorTimo Sirainen <tss@iki.fi>
Sat, 8 Feb 2003 17:13:36 +0000 (19:13 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 8 Feb 2003 17:13:36 +0000 (19:13 +0200)
--HG--
branch : HEAD

src/auth/common.h
src/auth/login-connection.c
src/auth/main.c

index 6a216ee90cf225b06e619c3cde25872e189925a4..99b3ad5fecdbd5dffeb04a311eb550a726116b3b 100644 (file)
@@ -7,6 +7,6 @@
 #define LOGIN_LISTEN_FD 3
 
 extern struct ioloop *ioloop;
-extern int verbose;
+extern int verbose, verbose_debug;
 
 #endif
index 5c2ac215d5570aa1f5a068339a940ea10e42a1bb..0ab0b024697f68dcc84159ecf1372f995685b8b5 100644 (file)
@@ -88,7 +88,7 @@ static void login_input_handshake(struct login_connection *conn)
                login_connection_destroy(conn);
        } else {
                conn->pid = rec.pid;
-               if (verbose) {
+               if (verbose_debug) {
                        i_info("Login process %d sent handshake: PID %s",
                               conn->fd, dec2str(conn->pid));
                }
@@ -176,7 +176,7 @@ struct login_connection *login_connection_create(int fd)
 {
        struct login_connection *conn;
 
-       if (verbose)
+       if (verbose_debug)
                i_info("Login process %d connected", fd);
 
        conn = i_new(struct login_connection, 1);
@@ -220,7 +220,7 @@ void login_connection_destroy(struct login_connection *conn)
        if (conn->fd == -1)
                return;
 
-       if (verbose)
+       if (verbose_debug)
                i_info("Login process %d disconnected", conn->fd);
 
        for (pos = &connections; *pos != NULL; pos = &(*pos)->next) {
index c370f2243c72cfbc953bc331409938f490728f69..9f2dca979acbb9ad208862f41014bf9c37d215ce 100644 (file)
@@ -17,7 +17,7 @@
 #include <syslog.h>
 
 struct ioloop *ioloop;
-int verbose = FALSE;
+int verbose = FALSE, verbose_debug = FALSE;
 
 static struct io *io_listen;
 
@@ -71,6 +71,7 @@ static void main_init(void)
        lib_init_signals(sig_quit);
 
        verbose = getenv("VERBOSE") != NULL;
+       verbose_debug = getenv("VERBOSE_DEBUG") != NULL;
 
        mech_init();
        userdb_init();