Browse Source

Set logger to debug in base_external_dbsource

pull/549/head
David Beal 8 years ago
committed by GitHub
parent
commit
40f35bb4b5
  1. 10
      base_external_dbsource/base_external_dbsource.py

10
base_external_dbsource/base_external_dbsource.py

@ -41,30 +41,30 @@ try:
CONNECTORS.append(('mssql', 'Microsoft SQL Server')) CONNECTORS.append(('mssql', 'Microsoft SQL Server'))
assert pymssql assert pymssql
except (ImportError, AssertionError): except (ImportError, AssertionError):
_logger.info('MS SQL Server not available. Please install "pymssql"\
_logger.debug('MS SQL Server not available. Please install "pymssql"\
python package.') python package.')
try: try:
import MySQLdb import MySQLdb
CONNECTORS.append(('mysql', 'MySQL')) CONNECTORS.append(('mysql', 'MySQL'))
assert MySQLdb assert MySQLdb
except (ImportError, AssertionError): except (ImportError, AssertionError):
_logger.info('MySQL not available. Please install "mysqldb"\
_logger.debug('MySQL not available. Please install "mysqldb"\
python package.') python package.')
except: except:
_logger.info('SQL Alchemy not available. Please install "slqalchemy"\
_logger.debug('SQL Alchemy not available. Please install "slqalchemy"\
python package.') python package.')
try: try:
import pyodbc import pyodbc
CONNECTORS.append(('pyodbc', 'ODBC')) CONNECTORS.append(('pyodbc', 'ODBC'))
except: except:
_logger.info('ODBC libraries not available. Please install "unixodbc"\
_logger.debug('ODBC libraries not available. Please install "unixodbc"\
and "python-pyodbc" packages.') and "python-pyodbc" packages.')
try: try:
import cx_Oracle import cx_Oracle
CONNECTORS.append(('cx_Oracle', 'Oracle')) CONNECTORS.append(('cx_Oracle', 'Oracle'))
except: except:
_logger.info('Oracle libraries not available. Please install "cx_Oracle"\
_logger.debug('Oracle libraries not available. Please install "cx_Oracle"\
python package.') python package.')

Loading…
Cancel
Save