Skip to content

Commit 3b13409

Browse files
committed
Add a bit more logging
1 parent e29ee16 commit 3b13409

File tree

1 file changed

+4
-2
lines changed
  • mamonsu/plugins/pgsql/driver

1 file changed

+4
-2
lines changed

mamonsu/plugins/pgsql/driver/pool.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ def is_pgpro_ee(self, db=None):
128128
if db in self._cache['pgproee']:
129129
return self._cache['pgproee'][db]
130130
try:
131-
ver = self.query('select pgpro_edition()')[0][0]
132-
self._cache['pgproee'][db] = (ver.lower() == 'enterprise')
131+
ed = self.query('select pgpro_edition()')[0][0]
132+
self._connections[db].log.info('pgpro_edition is {}'.format(ed))
133+
self._cache['pgproee'][db] = (ed.lower() == 'enterprise')
133134
except:
135+
self._connections[db].log.info('pgpro_edition() is not defined')
134136
self._cache['pgproee'][db] = False
135137
return self._cache['pgproee'][db]
136138

0 commit comments

Comments
 (0)