PgDB: add INFO log message on server connection
This commit is contained in:
parent
5acbdbe8e3
commit
b7a576eb52
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ class PgDB:
|
|||
""" Connect to PostgreSQL server """
|
||||
if self._conn is None:
|
||||
try:
|
||||
log.info(
|
||||
'Connect on PostgreSQL server %s as %s on database %s',
|
||||
self._host, self._user, self._db)
|
||||
self._conn = psycopg2.connect(
|
||||
dbname=self._db,
|
||||
user=self._user,
|
||||
|
|
Loading…
Reference in a new issue