log when connecting to an external pyro source stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 30 Sep 2009 16:06:04 +0200
branchstable
changeset 3527 efeb16ff93f3
parent 3526 dfb2ebb765e2
child 3528 77a69de16709
log when connecting to an external pyro source
server/sources/pyrorql.py
--- a/server/sources/pyrorql.py	Wed Sep 30 16:05:43 2009 +0200
+++ b/server/sources/pyrorql.py	Wed Sep 30 16:06:04 2009 +0200
@@ -218,6 +218,8 @@
         """open and return a connection to the source"""
         nshost = self.config.get('pyro-ns-host') or self.repo.config['pyro-ns-host']
         nsgroup = self.config.get('pyro-ns-group') or self.repo.config['pyro-ns-group']
+        self.info('connecting to instance :%s.%s for user %s',
+                  nsgroup, nshost, self.config['cubicweb-user'])
         #cnxprops = ConnectionProperties(cnxtype=self.config['cnx-type'])
         return dbapi.connect(database=self.config['pyro-ns-id'],
                              login=self.config['cubicweb-user'],