Added logging to app/__init__.py