dovecot-2.2: mysql/pgsql: Don't bother logging about having conn...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 24 19:04:26 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/33e78edac8f5
changeset: 16107:33e78edac8f5
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 24 19:04:15 2013 +0200
description:
mysql/pgsql: Don't bother logging about having connected to the database.
There's probably no good reason to have them? Errors are of course still
logged.

diffstat:

 src/lib-sql/driver-mysql.c |  3 ---
 src/lib-sql/driver-pgsql.c |  2 --
 2 files changed, 0 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r ce2b9b430eed -r 33e78edac8f5 src/lib-sql/driver-mysql.c
--- a/src/lib-sql/driver-mysql.c	Sun Mar 24 18:58:20 2013 +0200
+++ b/src/lib-sql/driver-mysql.c	Sun Mar 24 19:04:15 2013 +0200
@@ -135,9 +135,6 @@
 			mysql_error(db->mysql), db->api.connect_delay);
 		return -1;
 	} else {
-		i_info("%s: Connected to database %s%s", mysql_prefix(db),
-		       db->dbname, db->ssl_set ? " using SSL" : "");
-
 		db->last_success = ioloop_time;
 		sql_db_set_state(&db->api, SQL_DB_STATE_IDLE);
 		return 1;
diff -r ce2b9b430eed -r 33e78edac8f5 src/lib-sql/driver-pgsql.c
--- a/src/lib-sql/driver-pgsql.c	Sun Mar 24 18:58:20 2013 +0200
+++ b/src/lib-sql/driver-pgsql.c	Sun Mar 24 19:04:15 2013 +0200
@@ -168,8 +168,6 @@
 	}
 
 	if (io_dir == 0) {
-		i_info("%s: Connected to database %s",
-		       pgsql_prefix(db), PQdb(db->pg));
 		if (db->to_connect != NULL)
 			timeout_remove(&db->to_connect);
 		driver_pgsql_set_state(db, SQL_DB_STATE_IDLE);


More information about the dovecot-cvs mailing list