diff --git a/trytond/backend/postgresql/database.py b/trytond/backend/postgresql/database.py index 4032e7db5a..137458bf55 100644 --- a/trytond/backend/postgresql/database.py +++ b/trytond/backend/postgresql/database.py @@ -40,6 +40,8 @@ class Database(DatabaseInterface): def connect(self): if self._connpool is not None: return self + logger = logging.getLogger('database') + logger.info('connect to "%s"' % self.database_name) host = CONFIG['db_host'] and "host=%s" % CONFIG['db_host'] or '' port = CONFIG['db_port'] and "port=%s" % CONFIG['db_port'] or '' name = "dbname=%s" % self.database_name