Skip to content

Commit

Permalink
Add option to database_connection so that logging can be turned on vi…
Browse files Browse the repository at this point in the history
…a object creation.

Signed-off-by: Scott Zawalski <[email protected]>
  • Loading branch information
Scott Zawalski committed Mar 3, 2010
1 parent ad3530a commit ae1d8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/database_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae1d8fc

Please sign in to comment.