Add option to database_connection so that logging can be turned on via object creation.
Signed-off-by: Scott Zawalski <[email protected]> --- autotest/database/database_connection.py 2010-02-25 16:27:15.000000000 -0800 +++ autotest/database/database_connection.py 2010-02-25 16:27:15.000000000 -0800 @@ -147,11 +147,11 @@ _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 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
