Browse Source

Set logger to debug in base_external_dbsource (#549)

pull/564/head
Daniel Reis 8 years ago
committed by GitHub
parent
commit
b2251a7ed3
  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'))
assert pymssql
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.')
try:
import MySQLdb
CONNECTORS.append(('mysql', 'MySQL'))
assert MySQLdb
except (ImportError, AssertionError):
_logger.info('MySQL not available. Please install "mysqldb"\
_logger.debug('MySQL not available. Please install "mysqldb"\
python package.')
except:
_logger.info('SQL Alchemy not available. Please install "slqalchemy"\
_logger.debug('SQL Alchemy not available. Please install "slqalchemy"\
python package.')
try:
import pyodbc
CONNECTORS.append(('pyodbc', 'ODBC'))
except:
_logger.info('ODBC libraries not available. Please install "unixodbc"\
_logger.debug('ODBC libraries not available. Please install "unixodbc"\
and "python-pyodbc" packages.')
try:
import cx_Oracle
CONNECTORS.append(('cx_Oracle', 'Oracle'))
except:
_logger.info('Oracle libraries not available. Please install "cx_Oracle"\
_logger.debug('Oracle libraries not available. Please install "cx_Oracle"\
python package.')

Loading…
Cancel
Save