From 43cd6341862aedd843d48e92890b934e3bde1960 Mon Sep 17 00:00:00 2001 From: mbligh Date: Wed, 3 Mar 2010 17:15:04 +0000 Subject: Add option to database_connection so that logging can be turned on via object creation. Signed-off-by: Scott Zawalski git-svn-id: svn://test.kernel.org/autotest/trunk@4283 592f7852-d20e-0410-864c-8624ca9c26a4 --- database/database_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'database/database_connection.py') diff --git a/database/database_connection.py b/database/database_connection.py index e1e32225..ca5f491f 100644 --- a/database/database_connection.py +++ b/database/database_connection.py @@ -147,11 +147,11 @@ class DatabaseConnection(object): _DATABASE_ATTRIBUTES = ('db_type', 'host', 'username', 'password', 'db_name') - def __init__(self, global_config_section=None): + def __init__(self, global_config_section=None, debug=False): self.global_config_section = global_config_section self._backend = None self.rowcount = None - self.debug = False + self.debug = debug # reconnect defaults self.reconnect_enabled = True -- cgit v1.2.3