diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2010-03-03 17:15:04 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2010-03-03 17:15:04 +0000 |
commit | 43cd6341862aedd843d48e92890b934e3bde1960 (patch) | |
tree | 2f5006401eddc40cdb85183b2cab712492061299 /database/database_connection.py | |
parent | 7b464e99c406c65146f209ab87c6e17dc96a117f (diff) |
Add option to database_connection so that logging can be turned on via object creation.
Signed-off-by: Scott Zawalski <scottz@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@4283 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'database/database_connection.py')
-rw-r--r-- | database/database_connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |