Skip to content
Snippets Groups Projects
Commit a598a5cb authored by Tim's avatar Tim
Browse files

lower sql log level and add bottle_sqlalchemy

parent 7a603e9d
No related branches found
No related tags found
No related merge requests found
......@@ -218,8 +218,9 @@ hive_posts_cache = sa.Table(
_url = os.environ.get('DATABASE_URL', 'missing ENV DATABASE_URL')
logging.basicConfig()
if os.environ.get('LOG_LEVEL') == 'INFO':
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
#if os.environ.get('LOG_LEVEL') == 'INFO': # ultra-verbose
# logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
logging.getLogger('sqlalchemy.engine').setLevel(logging.WARNING)
def connect(connection_url=_url, **kwargs):
......
......@@ -27,6 +27,7 @@ setup(
install_requires=[
'steem',
'bottle',
'bottle_sqlalchemy',
'bottle_errorsrest',
'sqlalchemy',
'mysqlclient',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment