# -*- encoding: utf-8 -*-
import config
import logging

from lazyblacksmith.app import create_app

app = create_app(config)

if __name__ == '__main__':
    formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')

    console = logging.StreamHandler()
    console.setLevel(logging.DEBUG)
    console.setFormatter(formatter)

    logger = logging.getLogger('lb.utils')
    logger.addHandler(console)
    logger.setLevel(logging.DEBUG)

    logger = logging.getLogger('lb.ajax')
    logger.addHandler(console)
    logger.setLevel(logging.DEBUG)

    app.run(port=config.PORT, host=config.HOST)

@@ -585,24 +585,178 @@
 g.DEBUG)%0D%0A%0D%0A
+    logger = logging.getLogger('sqlalchemy.engine')%0D%0A    logger.addHandler(console)%0D%0A    logger.setLevel(logging.ERROR)  # DEBUG for queries + results%0D%0A%0D%0A
     app.run(

Add SQLAlchemy logging info